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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.HTr = type { [3 x double], [3 x [3 x double]] }

@RCS_GLOBAL_RLOG_CB = external global ptr, align 8
@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.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.122 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [16 x i8], align 1
@__func__.testHTr = external hidden unnamed_addr constant [8 x i8], align 1
@.str.129 = 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

; Function Attrs: mustprogress uwtable
define dso_local zeroext i1 @testHTr(i32 noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %struct.HTr, align 8
  %10 = alloca %struct.HTr, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  store i32 %0, ptr %3, align 4, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #4
  store i8 1, ptr %5, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %13 = call ptr @HTr_create()
  store ptr %13, ptr %6, align 8, !tbaa !9
  %14 = load ptr, ptr %6, align 8, !tbaa !9
  call void @HTr_setIdentity(ptr noundef %14)
  %15 = load ptr, ptr %6, align 8, !tbaa !9
  %16 = getelementptr inbounds %struct.HTr, ptr %15, i32 0, i32 0
  %17 = getelementptr inbounds [3 x double], ptr %16, i64 0, i64 0
  call void @Vec3d_set(ptr noundef %17, double noundef 1.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %18 = load ptr, ptr %6, align 8, !tbaa !9
  %19 = getelementptr inbounds %struct.HTr, ptr %18, i32 0, i32 1
  %20 = getelementptr inbounds [3 x [3 x double]], ptr %19, i64 0, i64 0
  call void @Mat3d_setRotMatZ(ptr noundef %20, double noundef 0xBFE921FB54442D18)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %21 = call ptr @HTr_create()
  store ptr %21, ptr %7, align 8, !tbaa !9
  %22 = load ptr, ptr %7, align 8, !tbaa !9
  call void @HTr_setIdentity(ptr noundef %22)
  %23 = load ptr, ptr %7, align 8, !tbaa !9
  %24 = getelementptr inbounds %struct.HTr, ptr %23, i32 0, i32 0
  %25 = getelementptr inbounds [3 x double], ptr %24, i64 0, i64 0
  call void @Vec3d_set(ptr noundef %25, double noundef 0.000000e+00, double noundef 1.000000e+00, double noundef 0.000000e+00)
  %26 = load ptr, ptr %7, align 8, !tbaa !9
  %27 = getelementptr inbounds %struct.HTr, ptr %26, i32 0, i32 1
  %28 = getelementptr inbounds [3 x [3 x double]], ptr %27, i64 0, i64 0
  call void @Mat3d_setRotMatZ(ptr noundef %28, double noundef 0xBFE0C152382D7365)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %29 = call ptr @HTr_create()
  store ptr %29, ptr %8, align 8, !tbaa !9
  %30 = load ptr, ptr %8, align 8, !tbaa !9
  call void @HTr_setIdentity(ptr noundef %30)
  %31 = load ptr, ptr %8, align 8, !tbaa !9
  %32 = getelementptr inbounds %struct.HTr, ptr %31, i32 0, i32 0
  %33 = getelementptr inbounds [3 x double], ptr %32, i64 0, i64 0
  call void @Vec3d_set(ptr noundef %33, double noundef 0xBFF6A09DF105C040, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %34 = load ptr, ptr %8, align 8, !tbaa !9
  %35 = getelementptr inbounds %struct.HTr, ptr %34, i32 0, i32 1
  %36 = getelementptr inbounds [3 x [3 x double]], ptr %35, i64 0, i64 0
  call void @Mat3d_setRotMatZ(ptr noundef %36, double noundef 0x3FD0C152382D7365)
  %37 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %38 = icmp sle i32 3, %37
  br i1 %38, label %39, label %54

39:                                               ; preds = %2
  %40 = load ptr, ptr @stderr, align 8, !tbaa !9
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef @.str.122) #4
  %42 = load ptr, ptr @stderr, align 8, !tbaa !9
  %43 = load ptr, ptr %6, align 8, !tbaa !9
  call void @HTr_fprint(ptr noundef %42, ptr noundef %43)
  %44 = load ptr, ptr @stderr, align 8, !tbaa !9
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef @.str.123) #4
  %46 = load ptr, ptr @stderr, align 8, !tbaa !9
  %47 = load ptr, ptr %7, align 8, !tbaa !9
  call void @HTr_fprint(ptr noundef %46, ptr noundef %47)
  %48 = load ptr, ptr @stderr, align 8, !tbaa !9
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef @.str.124) #4
  %50 = load ptr, ptr @stderr, align 8, !tbaa !9
  %51 = load ptr, ptr %8, align 8, !tbaa !9
  call void @HTr_fprint(ptr noundef %50, ptr noundef %51)
  %52 = load ptr, ptr @stderr, align 8, !tbaa !9
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef @.str.6) #4
  br label %54

54:                                               ; preds = %39, %2
  call void @llvm.lifetime.start.p0(i64 96, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 96, ptr %10) #4
  %55 = load ptr, ptr %6, align 8, !tbaa !9
  %56 = load ptr, ptr %8, align 8, !tbaa !9
  call void @HTr_transform(ptr noundef %9, ptr noundef %55, ptr noundef %56)
  %57 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %58 = icmp sle i32 3, %57
  br i1 %58, label %59, label %63

59:                                               ; preds = %54
  %60 = load ptr, ptr @stderr, align 8, !tbaa !9
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef @.str.125) #4
  %62 = load ptr, ptr @stderr, align 8, !tbaa !9
  call void @HTr_fprint(ptr noundef %62, ptr noundef %9)
  br label %63

63:                                               ; preds = %59, %54
  %64 = load ptr, ptr %6, align 8, !tbaa !9
  %65 = load ptr, ptr %7, align 8, !tbaa !9
  call void @HTr_invTransform(ptr noundef %10, ptr noundef %64, ptr noundef %65)
  %66 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %67 = icmp sle i32 3, %66
  br i1 %67, label %68, label %72

68:                                               ; preds = %63
  %69 = load ptr, ptr @stderr, align 8, !tbaa !9
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef @.str.126) #4
  %71 = load ptr, ptr @stderr, align 8, !tbaa !9
  call void @HTr_fprint(ptr noundef %71, ptr noundef %10)
  br label %72

72:                                               ; preds = %68, %63
  %73 = load ptr, ptr %8, align 8, !tbaa !9
  call void @VecNd_subSelf(ptr noundef %10, ptr noundef %73, i32 noundef 12)
  %74 = load ptr, ptr %7, align 8, !tbaa !9
  call void @VecNd_subSelf(ptr noundef %9, ptr noundef %74, i32 noundef 12)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %75 = call double @VecNd_maxAbsEle(ptr noundef %10, i32 noundef 12)
  store double %75, ptr %11, align 8, !tbaa !13
  %76 = load double, ptr %11, align 8, !tbaa !13
  %77 = fcmp ogt double %76, 1.000000e-05
  br i1 %77, label %78, label %87

78:                                               ; preds = %72
  %79 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %80 = icmp sle i32 2, %79
  br i1 %80, label %81, label %86

81:                                               ; preds = %78
  %82 = load ptr, ptr @stderr, align 8, !tbaa !9
  %83 = load double, ptr %11, align 8, !tbaa !13
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef @.str.127, double noundef %83) #4
  %85 = load ptr, ptr @stderr, align 8, !tbaa !9
  call void @HTr_fprint(ptr noundef %85, ptr noundef %10)
  br label %86

86:                                               ; preds = %81, %78
  store i8 0, ptr %5, align 1, !tbaa !11
  br label %87

87:                                               ; preds = %86, %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %88 = call double @VecNd_maxAbsEle(ptr noundef %9, i32 noundef 12)
  store double %88, ptr %12, align 8, !tbaa !13
  %89 = load double, ptr %12, align 8, !tbaa !13
  %90 = fcmp ogt double %89, 1.000000e-05
  br i1 %90, label %91, label %100

91:                                               ; preds = %87
  %92 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %93 = icmp sle i32 2, %92
  br i1 %93, label %94, label %99

94:                                               ; preds = %91
  %95 = load ptr, ptr @stderr, align 8, !tbaa !9
  %96 = load double, ptr %12, align 8, !tbaa !13
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef @.str.128, double noundef %96) #4
  %98 = load ptr, ptr @stderr, align 8, !tbaa !9
  call void @HTr_fprint(ptr noundef %98, ptr noundef %9)
  br label %99

99:                                               ; preds = %94, %91
  store i8 0, ptr %5, align 1, !tbaa !11
  br label %100

100:                                              ; preds = %99, %87
  %101 = load ptr, ptr %6, align 8, !tbaa !9
  call void @free(ptr noundef %101) #4
  %102 = load ptr, ptr %7, align 8, !tbaa !9
  call void @free(ptr noundef %102) #4
  %103 = load ptr, ptr %8, align 8, !tbaa !9
  call void @free(ptr noundef %103) #4
  br label %104

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

107:                                              ; preds = %104
  %108 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %109 = load i8, ptr %5, align 1, !tbaa !11, !range !15, !noundef !16
  %110 = trunc i8 %109 to i1
  br i1 %110, label %111, label %112

111:                                              ; preds = %107
  br label %113

112:                                              ; preds = %107
  br label %113

113:                                              ; preds = %112, %111
  %114 = phi ptr [ @.str.20, %111 ], [ @.str.21, %112 ]
  %115 = getelementptr inbounds [8 x i8], ptr %114, i64 0, i64 0
  call void (i32, ptr, ptr, i32, ptr, ...) %108(i32 noundef 1, ptr noundef @.str.18, ptr noundef @__func__.testHTr, i32 noundef 1133, ptr noundef @.str.129, ptr noundef %115)
  br label %116

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

119:                                              ; preds = %116
  %120 = load ptr, ptr @stderr, align 8, !tbaa !9
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef @.str.22, ptr noundef @__func__.testHTr, i32 noundef 1133) #4
  %122 = load ptr, ptr @stderr, align 8, !tbaa !9
  %123 = load i8, ptr %5, align 1, !tbaa !11, !range !15, !noundef !16
  %124 = trunc i8 %123 to i1
  br i1 %124, label %125, label %126

125:                                              ; preds = %119
  br label %127

126:                                              ; preds = %119
  br label %127

127:                                              ; preds = %126, %125
  %128 = phi ptr [ @.str.20, %125 ], [ @.str.21, %126 ]
  %129 = getelementptr inbounds [8 x i8], ptr %128, i64 0, i64 0
  %130 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef @.str.129, ptr noundef %129) #4
  %131 = load ptr, ptr @stderr, align 8, !tbaa !9
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef @.str.6) #4
  br label %133

133:                                              ; preds = %127, %116
  br label %134

134:                                              ; preds = %133
  br label %135

135:                                              ; preds = %134
  %136 = load i8, ptr %5, align 1, !tbaa !11, !range !15, !noundef !16
  %137 = trunc i8 %136 to i1
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 96, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 96, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #4
  ret i1 %137
}

declare ptr @HTr_create() #3

declare void @HTr_setIdentity(ptr noundef) #3

declare void @Vec3d_set(ptr noundef, double noundef, double noundef, double noundef) #3

declare void @Mat3d_setRotMatZ(ptr noundef, double noundef) #3

declare void @HTr_fprint(ptr noundef, ptr noundef) #3

declare void @HTr_transform(ptr noundef, ptr noundef, ptr noundef) #3

declare void @HTr_invTransform(ptr noundef, ptr noundef, ptr noundef) #3

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

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #1

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 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

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

%struct.HTr = type { [3 x double], [3 x [3 x double]] }

@RCS_GLOBAL_RLOG_CB = external local_unnamed_addr global ptr, align 8
@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.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.122 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [16 x i8], align 1
@__func__.testHTr = external hidden unnamed_addr constant [8 x i8], align 1
@.str.129 = 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

; Function Attrs: mustprogress uwtable
define dso_local zeroext i1 @testHTr(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #2 {
  %3 = alloca %struct.HTr, align 8
  %4 = alloca %struct.HTr, align 8
  %5 = tail call ptr @HTr_create()
  tail call void @HTr_setIdentity(ptr noundef %5)
  tail call void @Vec3d_set(ptr noundef %5, double noundef 1.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %6 = getelementptr inbounds i8, ptr %5, i64 24
  tail call void @Mat3d_setRotMatZ(ptr noundef nonnull %6, double noundef 0xBFE921FB54442D18)
  %7 = tail call ptr @HTr_create()
  tail call void @HTr_setIdentity(ptr noundef %7)
  tail call void @Vec3d_set(ptr noundef %7, double noundef 0.000000e+00, double noundef 1.000000e+00, double noundef 0.000000e+00)
  %8 = getelementptr inbounds i8, ptr %7, i64 24
  tail call void @Mat3d_setRotMatZ(ptr noundef nonnull %8, double noundef 0xBFE0C152382D7365)
  %9 = tail call ptr @HTr_create()
  tail call void @HTr_setIdentity(ptr noundef %9)
  tail call void @Vec3d_set(ptr noundef %9, double noundef 0xBFF6A09DF105C040, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %10 = getelementptr inbounds i8, ptr %9, i64 24
  tail call void @Mat3d_setRotMatZ(ptr noundef nonnull %10, double noundef 0x3FD0C152382D7365)
  %11 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %12 = icmp sgt i32 %11, 2
  br i1 %12, label %13, label %25

13:                                               ; preds = %2
  %14 = load ptr, ptr @stderr, align 8, !tbaa !9
  %15 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef nonnull @.str.122) #5
  %16 = load ptr, ptr @stderr, align 8, !tbaa !9
  tail call void @HTr_fprint(ptr noundef %16, ptr noundef %5)
  %17 = load ptr, ptr @stderr, align 8, !tbaa !9
  %18 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str.123) #5
  %19 = load ptr, ptr @stderr, align 8, !tbaa !9
  tail call void @HTr_fprint(ptr noundef %19, ptr noundef %7)
  %20 = load ptr, ptr @stderr, align 8, !tbaa !9
  %21 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.124) #5
  %22 = load ptr, ptr @stderr, align 8, !tbaa !9
  tail call void @HTr_fprint(ptr noundef %22, ptr noundef %9)
  %23 = load ptr, ptr @stderr, align 8, !tbaa !9
  %24 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str.6) #5
  br label %25

25:                                               ; preds = %13, %2
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %4) #6
  call void @HTr_transform(ptr noundef nonnull %3, ptr noundef %5, ptr noundef %9)
  %26 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %27 = icmp sgt i32 %26, 2
  br i1 %27, label %28, label %32

28:                                               ; preds = %25
  %29 = load ptr, ptr @stderr, align 8, !tbaa !9
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.125) #5
  %31 = load ptr, ptr @stderr, align 8, !tbaa !9
  call void @HTr_fprint(ptr noundef %31, ptr noundef nonnull %3)
  br label %32

32:                                               ; preds = %28, %25
  call void @HTr_invTransform(ptr noundef nonnull %4, ptr noundef %5, ptr noundef %7)
  %33 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %34 = icmp sgt i32 %33, 2
  br i1 %34, label %35, label %39

35:                                               ; preds = %32
  %36 = load ptr, ptr @stderr, align 8, !tbaa !9
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.126) #5
  %38 = load ptr, ptr @stderr, align 8, !tbaa !9
  call void @HTr_fprint(ptr noundef %38, ptr noundef nonnull %4)
  br label %39

39:                                               ; preds = %35, %32
  call void @VecNd_subSelf(ptr noundef nonnull %4, ptr noundef %9, i32 noundef 12)
  call void @VecNd_subSelf(ptr noundef nonnull %3, ptr noundef %7, i32 noundef 12)
  %40 = call double @VecNd_maxAbsEle(ptr noundef nonnull %4, i32 noundef 12)
  %41 = fcmp ogt double %40, 1.000000e-05
  br i1 %41, label %42, label %49

42:                                               ; preds = %39
  %43 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %44 = icmp sgt i32 %43, 1
  br i1 %44, label %45, label %49

45:                                               ; preds = %42
  %46 = load ptr, ptr @stderr, align 8, !tbaa !9
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.127, double noundef %40) #5
  %48 = load ptr, ptr @stderr, align 8, !tbaa !9
  call void @HTr_fprint(ptr noundef %48, ptr noundef nonnull %4)
  br label %49

49:                                               ; preds = %42, %45, %39
  %.0 = phi i8 [ 1, %39 ], [ 0, %45 ], [ 0, %42 ]
  %50 = call double @VecNd_maxAbsEle(ptr noundef nonnull %3, i32 noundef 12)
  %51 = fcmp ogt double %50, 1.000000e-05
  br i1 %51, label %52, label %59

52:                                               ; preds = %49
  %53 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %54 = icmp sgt i32 %53, 1
  br i1 %54, label %55, label %59

55:                                               ; preds = %52
  %56 = load ptr, ptr @stderr, align 8, !tbaa !9
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.128, double noundef %50) #5
  %58 = load ptr, ptr @stderr, align 8, !tbaa !9
  call void @HTr_fprint(ptr noundef %58, ptr noundef nonnull %3)
  br label %59

59:                                               ; preds = %52, %55, %49
  %.1 = phi i8 [ %.0, %49 ], [ 0, %55 ], [ 0, %52 ]
  call void @free(ptr noundef %5) #6
  call void @free(ptr noundef %7) #6
  call void @free(ptr noundef %9) #6
  %60 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %.not = icmp eq ptr %60, null
  br i1 %.not, label %63, label %61

61:                                               ; preds = %59
  %62 = trunc nuw i8 %.1 to i1
  %.str.20..str.21 = select i1 %62, ptr @.str.20, ptr @.str.21
  call void (i32, ptr, ptr, i32, ptr, ...) %60(i32 noundef 1, ptr noundef nonnull @.str.18, ptr noundef nonnull @__func__.testHTr, i32 noundef 1133, ptr noundef nonnull @.str.129, ptr noundef nonnull %.str.20..str.21)
  br label %63

63:                                               ; preds = %61, %59
  %64 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %65 = icmp sgt i32 %64, 0
  br i1 %65, label %66, label %._crit_edge

._crit_edge:                                      ; preds = %63
  %.pre = trunc nuw i8 %.1 to i1
  br label %74

66:                                               ; preds = %63
  %67 = load ptr, ptr @stderr, align 8, !tbaa !9
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef nonnull @.str.22, ptr noundef nonnull @__func__.testHTr, i32 noundef 1133) #5
  %69 = load ptr, ptr @stderr, align 8, !tbaa !9
  %70 = trunc nuw i8 %.1 to i1
  %.str.20..str.211 = select i1 %70, ptr @.str.20, ptr @.str.21
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef nonnull @.str.129, ptr noundef nonnull %.str.20..str.211) #5
  %72 = load ptr, ptr @stderr, align 8, !tbaa !9
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef nonnull @.str.6) #5
  br label %74

74:                                               ; preds = %._crit_edge, %66
  %.pre-phi = phi i1 [ %.pre, %._crit_edge ], [ %70, %66 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %3) #6
  ret i1 %.pre-phi
}

declare ptr @HTr_create() local_unnamed_addr #3

declare void @HTr_setIdentity(ptr noundef) local_unnamed_addr #3

declare void @Vec3d_set(ptr noundef, double noundef, double noundef, double noundef) local_unnamed_addr #3

declare void @Mat3d_setRotMatZ(ptr noundef, double noundef) local_unnamed_addr #3

declare void @HTr_fprint(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @HTr_transform(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @HTr_invTransform(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

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 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { cold nounwind }
attributes #6 = { 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}


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