; 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.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [15 x i8], align 1
@__func__.testMat3dFunctions = external hidden unnamed_addr constant [19 x i8], align 1
@.str.322 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.323 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.324 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.325 = external hidden unnamed_addr constant [26 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 i32 @fflush(ptr noundef) #2

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

declare i32 @Math_getRandomInteger(i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local zeroext i1 @testMat3dFunctions(i32 noundef %0, ptr noundef %1) #3 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca [3 x [3 x double]], align 16
  %7 = alloca [3 x double], align 16
  %8 = alloca i32, align 4
  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
  br label %9

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

12:                                               ; preds = %9
  %13 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  call void (i32, ptr, ptr, i32, ptr, ...) %13(i32 noundef 2, ptr noundef @.str.18, ptr noundef @__func__.testMat3dFunctions, i32 noundef 3241, ptr noundef @.str.24)
  br label %14

14:                                               ; preds = %12, %9
  %15 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %16 = icmp sle i32 2, %15
  br i1 %16, label %17, label %24

17:                                               ; preds = %14
  %18 = load ptr, ptr @stderr, align 8, !tbaa !9
  %19 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef @.str.22, ptr noundef @__func__.testMat3dFunctions, i32 noundef 3241) #4
  %20 = load ptr, ptr @stderr, align 8, !tbaa !9
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef @.str.24) #4
  %22 = load ptr, ptr @stderr, align 8, !tbaa !9
  %23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef @.str.6) #4
  br label %24

24:                                               ; preds = %17, %14
  br label %25

25:                                               ; preds = %24
  br label %26

26:                                               ; preds = %25
  br label %27

27:                                               ; preds = %26
  %28 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %32

30:                                               ; preds = %27
  %31 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  call void (i32, ptr, ptr, i32, ptr, ...) %31(i32 noundef 2, ptr noundef @.str.18, ptr noundef @__func__.testMat3dFunctions, i32 noundef 3242, ptr noundef @.str.322)
  br label %32

32:                                               ; preds = %30, %27
  %33 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %34 = icmp sle i32 2, %33
  br i1 %34, label %35, label %42

35:                                               ; preds = %32
  %36 = load ptr, ptr @stderr, align 8, !tbaa !9
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef @.str.22, ptr noundef @__func__.testMat3dFunctions, i32 noundef 3242) #4
  %38 = load ptr, ptr @stderr, align 8, !tbaa !9
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef @.str.322) #4
  %40 = load ptr, ptr @stderr, align 8, !tbaa !9
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef @.str.6) #4
  br label %42

42:                                               ; preds = %35, %32
  br label %43

43:                                               ; preds = %42
  br label %44

44:                                               ; preds = %43
  br label %45

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

48:                                               ; preds = %45
  %49 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  call void (i32, ptr, ptr, i32, ptr, ...) %49(i32 noundef 2, ptr noundef @.str.18, ptr noundef @__func__.testMat3dFunctions, i32 noundef 3243, ptr noundef @.str.24)
  br label %50

50:                                               ; preds = %48, %45
  %51 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %52 = icmp sle i32 2, %51
  br i1 %52, label %53, label %60

53:                                               ; preds = %50
  %54 = load ptr, ptr @stderr, align 8, !tbaa !9
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef @.str.22, ptr noundef @__func__.testMat3dFunctions, i32 noundef 3243) #4
  %56 = load ptr, ptr @stderr, align 8, !tbaa !9
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef @.str.24) #4
  %58 = load ptr, ptr @stderr, align 8, !tbaa !9
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef @.str.6) #4
  br label %60

60:                                               ; preds = %53, %50
  br label %61

61:                                               ; preds = %60
  br label %62

62:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 72, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #4
  %63 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
  call void @Vec3d_setRandom(ptr noundef %63, double noundef -1.000000e+00, double noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %64 = call i32 @Math_getRandomInteger(i32 noundef 0, i32 noundef 2)
  store i32 %64, ptr %8, align 4, !tbaa !5
  %65 = getelementptr inbounds [3 x [3 x double]], ptr %6, i64 0, i64 0
  %66 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
  %67 = load i32, ptr %8, align 4, !tbaa !5
  call void @Mat3d_fromVec(ptr noundef %65, ptr noundef %66, i32 noundef %67)
  %68 = getelementptr inbounds [3 x [3 x double]], ptr %6, i64 0, i64 0
  %69 = call zeroext i1 @Mat3d_isValid(ptr noundef %68)
  br i1 %69, label %88, label %70

70:                                               ; preds = %62
  store i8 0, ptr %5, align 1, !tbaa !11
  %71 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %72 = icmp sle i32 1, %71
  br i1 %72, label %73, label %87

73:                                               ; preds = %70
  br label %74

74:                                               ; preds = %73
  %75 = load ptr, ptr @stderr, align 8, !tbaa !9
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef @.str.119, ptr noundef @.str.3, ptr noundef @__func__.testMat3dFunctions, i32 noundef 3256) #4
  %77 = load ptr, ptr @stderr, align 8, !tbaa !9
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef @.str.323) #4
  %79 = load ptr, ptr @stderr, align 8, !tbaa !9
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef @.str.6) #4
  %81 = load ptr, ptr @stderr, align 8, !tbaa !9
  %82 = call i32 @fflush(ptr noundef %81)
  br label %83

83:                                               ; preds = %74
  br label %84

84:                                               ; preds = %83
  %85 = load ptr, ptr @stderr, align 8, !tbaa !9
  %86 = getelementptr inbounds [3 x [3 x double]], ptr %6, i64 0, i64 0
  call void @Mat3d_fprint(ptr noundef %85, ptr noundef %86)
  br label %87

87:                                               ; preds = %84, %70
  br label %124

88:                                               ; preds = %62
  %89 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %90 = icmp sle i32 3, %89
  br i1 %90, label %91, label %123

91:                                               ; preds = %88
  br label %92

92:                                               ; preds = %91
  %93 = load ptr, ptr @stderr, align 8, !tbaa !9
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef @.str.119, ptr noundef @.str.3, ptr noundef @__func__.testMat3dFunctions, i32 noundef 3264) #4
  %95 = load ptr, ptr @stderr, align 8, !tbaa !9
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef @.str.324) #4
  %97 = load ptr, ptr @stderr, align 8, !tbaa !9
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef @.str.6) #4
  %99 = load ptr, ptr @stderr, align 8, !tbaa !9
  %100 = call i32 @fflush(ptr noundef %99)
  br label %101

101:                                              ; preds = %92
  br label %102

102:                                              ; preds = %101
  br label %103

103:                                              ; preds = %102
  %104 = load ptr, ptr @stderr, align 8, !tbaa !9
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef @.str.119, ptr noundef @.str.3, ptr noundef @__func__.testMat3dFunctions, i32 noundef 3265) #4
  %106 = load ptr, ptr @stderr, align 8, !tbaa !9
  %107 = load i32, ptr %8, align 4, !tbaa !5
  %108 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
  %109 = load double, ptr %108, align 16, !tbaa !13
  %110 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 1
  %111 = load double, ptr %110, align 8, !tbaa !13
  %112 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 2
  %113 = load double, ptr %112, align 16, !tbaa !13
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %106, ptr noundef @.str.325, i32 noundef %107, double noundef %109, double noundef %111, double noundef %113) #4
  %115 = load ptr, ptr @stderr, align 8, !tbaa !9
  %116 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef @.str.6) #4
  %117 = load ptr, ptr @stderr, align 8, !tbaa !9
  %118 = call i32 @fflush(ptr noundef %117)
  br label %119

119:                                              ; preds = %103
  br label %120

120:                                              ; preds = %119
  %121 = load ptr, ptr @stderr, align 8, !tbaa !9
  %122 = getelementptr inbounds [3 x [3 x double]], ptr %6, i64 0, i64 0
  call void @Mat3d_fprint(ptr noundef %121, ptr noundef %122)
  br label %123

123:                                              ; preds = %120, %88
  br label %124

124:                                              ; preds = %123, %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 72, ptr %6) #4
  %125 = load i8, ptr %5, align 1, !tbaa !11, !range !15, !noundef !16
  %126 = trunc i8 %125 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #4
  ret i1 %126
}

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

declare zeroext i1 @Mat3d_isValid(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 = { 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, !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.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [15 x i8], align 1
@__func__.testMat3dFunctions = external hidden unnamed_addr constant [19 x i8], align 1
@.str.322 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.323 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.324 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.325 = external hidden unnamed_addr constant [26 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

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

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

declare i32 @Math_getRandomInteger(i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @testMat3dFunctions(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 double], align 16
  %5 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %7, label %6

6:                                                ; preds = %2
  tail call void (i32, ptr, ptr, i32, ptr, ...) %5(i32 noundef 2, ptr noundef nonnull @.str.18, ptr noundef nonnull @__func__.testMat3dFunctions, i32 noundef 3241, ptr noundef nonnull @.str.24)
  br label %7

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

10:                                               ; preds = %7
  %11 = load ptr, ptr @stderr, align 8, !tbaa !5
  %12 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef nonnull @.str.22, ptr noundef nonnull @__func__.testMat3dFunctions, i32 noundef 3241) #4
  %13 = load ptr, ptr @stderr, align 8, !tbaa !5
  %14 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.24) #4
  %15 = load ptr, ptr @stderr, align 8, !tbaa !5
  %16 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str.6) #4
  br label %17

17:                                               ; preds = %7, %10
  %18 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not6 = icmp eq ptr %18, null
  br i1 %.not6, label %20, label %19

19:                                               ; preds = %17
  tail call void (i32, ptr, ptr, i32, ptr, ...) %18(i32 noundef 2, ptr noundef nonnull @.str.18, ptr noundef nonnull @__func__.testMat3dFunctions, i32 noundef 3242, ptr noundef nonnull @.str.322)
  br label %20

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

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

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

32:                                               ; preds = %30
  tail call void (i32, ptr, ptr, i32, ptr, ...) %31(i32 noundef 2, ptr noundef nonnull @.str.18, ptr noundef nonnull @__func__.testMat3dFunctions, i32 noundef 3243, ptr noundef nonnull @.str.24)
  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.22, ptr noundef nonnull @__func__.testMat3dFunctions, i32 noundef 3243) #4
  %39 = load ptr, ptr @stderr, align 8, !tbaa !5
  %40 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str.24) #4
  %41 = load ptr, ptr @stderr, align 8, !tbaa !5
  %42 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef nonnull @.str.6) #4
  br label %43

43:                                               ; preds = %36, %33
  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 @Vec3d_setRandom(ptr noundef nonnull %4, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %44 = call i32 @Math_getRandomInteger(i32 noundef 0, i32 noundef 2)
  call void @Mat3d_fromVec(ptr noundef nonnull %3, ptr noundef nonnull %4, i32 noundef %44)
  %45 = call zeroext i1 @Mat3d_isValid(ptr noundef nonnull %3)
  %46 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  br i1 %45, label %54, label %47

47:                                               ; preds = %43
  %48 = icmp sgt i32 %46, 0
  br i1 %48, label %49, label %79

49:                                               ; preds = %47
  %50 = load ptr, ptr @stderr, align 8, !tbaa !5
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef nonnull @.str.119, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testMat3dFunctions, i32 noundef 3256) #4
  %52 = load ptr, ptr @stderr, align 8, !tbaa !5
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef nonnull @.str.323) #4
  br label %.sink.split

54:                                               ; preds = %43
  %55 = icmp sgt i32 %46, 2
  br i1 %55, label %56, label %79

56:                                               ; preds = %54
  %57 = load ptr, ptr @stderr, align 8, !tbaa !5
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef nonnull @.str.119, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testMat3dFunctions, i32 noundef 3264) #4
  %59 = load ptr, ptr @stderr, align 8, !tbaa !5
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef nonnull @.str.324) #4
  %61 = load ptr, ptr @stderr, align 8, !tbaa !5
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef nonnull @.str.6) #4
  %63 = load ptr, ptr @stderr, align 8, !tbaa !5
  %64 = call i32 @fflush(ptr noundef %63)
  %65 = load ptr, ptr @stderr, align 8, !tbaa !5
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef nonnull @.str.119, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testMat3dFunctions, i32 noundef 3265) #4
  %67 = load ptr, ptr @stderr, align 8, !tbaa !5
  %68 = load double, ptr %4, align 16, !tbaa !11
  %69 = getelementptr inbounds i8, ptr %4, i64 8
  %70 = load double, ptr %69, align 8, !tbaa !11
  %71 = getelementptr inbounds i8, ptr %4, i64 16
  %72 = load double, ptr %71, align 16, !tbaa !11
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef nonnull @.str.325, i32 noundef %44, double noundef %68, double noundef %70, double noundef %72) #4
  br label %.sink.split

.sink.split:                                      ; preds = %49, %56
  %74 = load ptr, ptr @stderr, align 8, !tbaa !5
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str.6) #4
  %76 = load ptr, ptr @stderr, align 8, !tbaa !5
  %77 = call i32 @fflush(ptr noundef %76)
  %78 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void @Mat3d_fprint(ptr noundef %78, ptr noundef nonnull %3)
  br label %79

79:                                               ; preds = %.sink.split, %54, %47
  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 %45
}

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

declare zeroext i1 @Mat3d_isValid(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 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 = { cold nounwind }
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 = !{!"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, !12, i64 0}
!12 = !{!"double", !7, i64 0}


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