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

%"class.Rcs::CmdLineParser" = type { i8 }
%struct._MatNd = type { ptr, i32, i32, i32, i8 }

@RCS_GLOBAL_RLOG_CB = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [74 x i8], align 1
@RcsLogLevel = external global i32, align 4
@stderr = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [60 x i8], align 1
@__func__.testDerivatives = external hidden unnamed_addr constant [16 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [21 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 @_ZN3Rcs13CmdLineParserC1EiPPc(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef, ptr noundef) unnamed_addr #2

declare noundef zeroext i1 @_ZNK3Rcs13CmdLineParser11getArgumentEPKcPdS2_z(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, ptr noundef, ptr noundef, ...) #2

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

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

declare void @MatNd_destroy(ptr noundef) #2

declare i32 @fflush(ptr noundef) #2

declare void @print_trace() #2

; Function Attrs: noreturn nounwind
declare void @abort() #3

declare noundef zeroext i1 @_ZNK3Rcs13CmdLineParser11getArgumentEPKcPiS2_z(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, ptr noundef, ptr noundef, ...) #2

; Function Attrs: mustprogress uwtable
define dso_local zeroext i1 @testDerivatives(i32 noundef %0, ptr noundef %1) #4 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca %"class.Rcs::CmdLineParser", align 1
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = 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) #7
  store i8 1, ptr %5, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #7
  %13 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %14 = icmp sgt i32 %13, 1
  %15 = zext i1 %14 to i64
  %16 = select i1 %14, i1 true, i1 false
  %17 = zext i1 %16 to i8
  store i8 %17, ptr %6, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 10, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  store double 5.000000e-02, ptr %8, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #7
  %18 = load i32, ptr %3, align 4, !tbaa !5
  %19 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN3Rcs13CmdLineParserC1EiPPc(ptr noundef nonnull align 1 dereferenceable(1) %9, i32 noundef %18, ptr noundef %19)
  %20 = load i32, ptr %7, align 4, !tbaa !5
  %21 = call noundef zeroext i1 (ptr, ptr, ptr, ptr, ...) @_ZNK3Rcs13CmdLineParser11getArgumentEPKcPiS2_z(ptr noundef nonnull align 1 dereferenceable(1) %9, ptr noundef @.str.64, ptr noundef %7, ptr noundef @.str.109, i32 noundef %20)
  %22 = load double, ptr %8, align 8, !tbaa !13
  %23 = call noundef zeroext i1 (ptr, ptr, ptr, ptr, ...) @_ZNK3Rcs13CmdLineParser11getArgumentEPKcPdS2_z(ptr noundef nonnull align 1 dereferenceable(1) %9, ptr noundef @.str.110, ptr noundef %8, ptr noundef @.str.111, double noundef %22)
  br label %24

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

27:                                               ; preds = %24
  %28 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  call void (i32, ptr, ptr, i32, ptr, ...) %28(i32 noundef 2, ptr noundef @.str.3, ptr noundef @__func__.testDerivatives, i32 noundef 977, ptr noundef @.str.112)
  br label %29

29:                                               ; preds = %27, %24
  %30 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %31 = icmp sle i32 2, %30
  br i1 %31, label %32, label %39

32:                                               ; preds = %29
  %33 = load ptr, ptr @stderr, align 8, !tbaa !9
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef @.str.5, ptr noundef @.str.3, ptr noundef @__func__.testDerivatives, i32 noundef 977) #7
  %35 = load ptr, ptr @stderr, align 8, !tbaa !9
  %36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef @.str.112) #7
  %37 = load ptr, ptr @stderr, align 8, !tbaa !9
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef @.str.6) #7
  br label %39

39:                                               ; preds = %32, %29
  br label %40

40:                                               ; preds = %39
  br label %41

41:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %42 = call ptr @MatNd_create(i32 noundef 3, i32 noundef 3)
  store ptr %42, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %192, %41
  %44 = load i32, ptr %11, align 4, !tbaa !5
  %45 = load i32, ptr %7, align 4, !tbaa !5
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %195

48:                                               ; preds = %43
  %49 = load ptr, ptr %10, align 8, !tbaa !9
  call void @MatNd_setRandom(ptr noundef %49, double noundef -1.000000e+00, double noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %50 = call i32 @rand() #7
  %51 = sitofp i32 %50 to double
  %52 = fdiv double %51, 0x41E0000000000000
  %53 = fmul double 3.000000e+00, %52
  %54 = fptosi double %53 to i32
  store i32 %54, ptr %12, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %48
  %56 = load i32, ptr %12, align 4, !tbaa !5
  %57 = icmp sge i32 %56, 0
  br i1 %57, label %58, label %61

58:                                               ; preds = %55
  %59 = load i32, ptr %12, align 4, !tbaa !5
  %60 = icmp slt i32 %59, 3
  br i1 %60, label %64, label %61

61:                                               ; preds = %58, %55
  %62 = load ptr, ptr @stderr, align 8, !tbaa !9
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef @.str.57, ptr noundef @.str.3, ptr noundef @__func__.testDerivatives, i32 noundef 987, ptr noundef @.str.113) #7
  call void @print_trace()
  call void @abort() #8
  unreachable

64:                                               ; preds = %58
  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 2, %67
  br i1 %68, label %69, label %72

69:                                               ; preds = %66
  %70 = load ptr, ptr @stderr, align 8, !tbaa !9
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef @.str.114) #7
  br label %72

72:                                               ; preds = %69, %66
  %73 = load i8, ptr %5, align 1, !tbaa !11, !range !15, !noundef !16
  %74 = trunc i8 %73 to i1
  br i1 %74, label %75, label %83

75:                                               ; preds = %72
  %76 = load ptr, ptr %10, align 8, !tbaa !9
  %77 = getelementptr inbounds %struct._MatNd, ptr %76, i32 0, i32 0
  %78 = load ptr, ptr %77, align 8, !tbaa !17
  %79 = load double, ptr %8, align 8, !tbaa !13
  %80 = load i8, ptr %6, align 1, !tbaa !11, !range !15, !noundef !16
  %81 = trunc i8 %80 to i1
  %82 = call zeroext i1 @Rcs_testGradient(ptr noundef @_ZL6test_fPdPKdPv, ptr noundef @_ZL7test_dfPdPKdPv, ptr noundef null, ptr noundef %78, i32 noundef 5, i32 noundef 1, double noundef %79, i1 noundef zeroext %81)
  br label %83

83:                                               ; preds = %75, %72
  %84 = phi i1 [ false, %72 ], [ %82, %75 ]
  %85 = zext i1 %84 to i8
  store i8 %85, ptr %5, align 1, !tbaa !11
  %86 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %87 = icmp sle i32 2, %86
  br i1 %87, label %88, label %91

88:                                               ; preds = %83
  %89 = load ptr, ptr @stderr, align 8, !tbaa !9
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef @.str.115) #7
  br label %91

91:                                               ; preds = %88, %83
  %92 = load i8, ptr %5, align 1, !tbaa !11, !range !15, !noundef !16
  %93 = trunc i8 %92 to i1
  br i1 %93, label %94, label %102

94:                                               ; preds = %91
  %95 = load ptr, ptr %10, align 8, !tbaa !9
  %96 = getelementptr inbounds %struct._MatNd, ptr %95, i32 0, i32 0
  %97 = load ptr, ptr %96, align 8, !tbaa !17
  %98 = load double, ptr %8, align 8, !tbaa !13
  %99 = load i8, ptr %6, align 1, !tbaa !11, !range !15, !noundef !16
  %100 = trunc i8 %99 to i1
  %101 = call zeroext i1 @Rcs_testGradient(ptr noundef @_ZL16test_LocalRotMatPdPKdPv, ptr noundef @_ZL17test_dLocalRotMatPdPKdPv, ptr noundef %12, ptr noundef %97, i32 noundef 1, i32 noundef 9, double noundef %98, i1 noundef zeroext %100)
  br label %102

102:                                              ; preds = %94, %91
  %103 = phi i1 [ false, %91 ], [ %101, %94 ]
  %104 = zext i1 %103 to i8
  store i8 %104, ptr %5, align 1, !tbaa !11
  %105 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %106 = icmp sle i32 2, %105
  br i1 %106, label %107, label %110

107:                                              ; preds = %102
  %108 = load ptr, ptr @stderr, align 8, !tbaa !9
  %109 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %108, ptr noundef @.str.116) #7
  br label %110

110:                                              ; preds = %107, %102
  %111 = load i8, ptr %5, align 1, !tbaa !11, !range !15, !noundef !16
  %112 = trunc i8 %111 to i1
  br i1 %112, label %113, label %121

113:                                              ; preds = %110
  %114 = load ptr, ptr %10, align 8, !tbaa !9
  %115 = getelementptr inbounds %struct._MatNd, ptr %114, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8, !tbaa !17
  %117 = load double, ptr %8, align 8, !tbaa !13
  %118 = load i8, ptr %6, align 1, !tbaa !11, !range !15, !noundef !16
  %119 = trunc i8 %118 to i1
  %120 = call zeroext i1 @Rcs_testGradient(ptr noundef @_ZL19test_LocalRotMatRelPdPKdPv, ptr noundef @_ZL20test_dLocalRotMatRelPdPKdPv, ptr noundef null, ptr noundef %116, i32 noundef 1, i32 noundef 9, double noundef %117, i1 noundef zeroext %119)
  br label %121

121:                                              ; preds = %113, %110
  %122 = phi i1 [ false, %110 ], [ %120, %113 ]
  %123 = zext i1 %122 to i8
  store i8 %123, ptr %5, align 1, !tbaa !11
  %124 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %125 = icmp sle i32 2, %124
  br i1 %125, label %126, label %129

126:                                              ; preds = %121
  %127 = load ptr, ptr @stderr, align 8, !tbaa !9
  %128 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %127, ptr noundef @.str.117) #7
  br label %129

129:                                              ; preds = %126, %121
  %130 = load i8, ptr %5, align 1, !tbaa !11, !range !15, !noundef !16
  %131 = trunc i8 %130 to i1
  br i1 %131, label %132, label %140

132:                                              ; preds = %129
  %133 = load ptr, ptr %10, align 8, !tbaa !9
  %134 = getelementptr inbounds %struct._MatNd, ptr %133, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8, !tbaa !17
  %136 = load double, ptr %8, align 8, !tbaa !13
  %137 = load i8, ptr %6, align 1, !tbaa !11, !range !15, !noundef !16
  %138 = trunc i8 %137 to i1
  %139 = call zeroext i1 @Rcs_testGradient(ptr noundef @_ZL14test_AxisAnglePdPKdPv, ptr noundef @_ZL21test_dAxisAngleDEulerPdPKdPv, ptr noundef null, ptr noundef %135, i32 noundef 3, i32 noundef 1, double noundef %136, i1 noundef zeroext %138)
  br label %140

140:                                              ; preds = %132, %129
  %141 = phi i1 [ false, %129 ], [ %139, %132 ]
  %142 = zext i1 %141 to i8
  store i8 %142, ptr %5, align 1, !tbaa !11
  %143 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %144 = icmp sle i32 2, %143
  br i1 %144, label %145, label %148

145:                                              ; preds = %140
  %146 = load ptr, ptr @stderr, align 8, !tbaa !9
  %147 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %146, ptr noundef @.str.118) #7
  br label %148

148:                                              ; preds = %145, %140
  %149 = load i8, ptr %5, align 1, !tbaa !11, !range !15, !noundef !16
  %150 = trunc i8 %149 to i1
  br i1 %150, label %151, label %159

151:                                              ; preds = %148
  %152 = load ptr, ptr %10, align 8, !tbaa !9
  %153 = getelementptr inbounds %struct._MatNd, ptr %152, i32 0, i32 0
  %154 = load ptr, ptr %153, align 8, !tbaa !17
  %155 = load double, ptr %8, align 8, !tbaa !13
  %156 = load i8, ptr %6, align 1, !tbaa !11, !range !15, !noundef !16
  %157 = trunc i8 %156 to i1
  %158 = call zeroext i1 @Rcs_testGradient(ptr noundef @_ZL8test_CylPdPKdPv, ptr noundef @_ZL9test_dCylPdPKdPv, ptr noundef null, ptr noundef %154, i32 noundef 3, i32 noundef 3, double noundef %155, i1 noundef zeroext %157)
  br label %159

159:                                              ; preds = %151, %148
  %160 = phi i1 [ false, %148 ], [ %158, %151 ]
  %161 = zext i1 %160 to i8
  store i8 %161, ptr %5, align 1, !tbaa !11
  %162 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %163 = icmp sle i32 2, %162
  br i1 %163, label %164, label %191

164:                                              ; preds = %159
  %165 = load i8, ptr %5, align 1, !tbaa !11, !range !15, !noundef !16
  %166 = trunc i8 %165 to i1
  %167 = zext i1 %166 to i32
  %168 = icmp eq i32 %167, 0
  br i1 %168, label %169, label %178

169:                                              ; preds = %164
  br label %170

170:                                              ; preds = %169
  %171 = load ptr, ptr @stderr, align 8, !tbaa !9
  %172 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %171, ptr noundef @.str.119, ptr noundef @.str.3, ptr noundef @__func__.testDerivatives, i32 noundef 1031) #7
  %173 = load ptr, ptr @stderr, align 8, !tbaa !9
  %174 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %173, ptr noundef @.str.21) #7
  %175 = call i32 @getchar()
  br label %176

176:                                              ; preds = %170
  br label %177

177:                                              ; preds = %176
  br label %190

178:                                              ; preds = %164
  br label %179

179:                                              ; preds = %178
  %180 = load ptr, ptr @stderr, align 8, !tbaa !9
  %181 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %180, ptr noundef @.str.22, ptr noundef @__func__.testDerivatives, i32 noundef 1035) #7
  %182 = load ptr, ptr @stderr, align 8, !tbaa !9
  %183 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %182, ptr noundef @.str.120) #7
  %184 = load ptr, ptr @stderr, align 8, !tbaa !9
  %185 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %184, ptr noundef @.str.6) #7
  %186 = load ptr, ptr @stderr, align 8, !tbaa !9
  %187 = call i32 @fflush(ptr noundef %186)
  br label %188

188:                                              ; preds = %179
  br label %189

189:                                              ; preds = %188
  br label %190

190:                                              ; preds = %189, %177
  br label %191

191:                                              ; preds = %190, %159
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %192

192:                                              ; preds = %191
  %193 = load i32, ptr %11, align 4, !tbaa !5
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %11, align 4, !tbaa !5
  br label %43, !llvm.loop !19

195:                                              ; preds = %47
  %196 = load ptr, ptr %10, align 8, !tbaa !9
  call void @MatNd_destroy(ptr noundef %196)
  br label %197

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

200:                                              ; preds = %197
  %201 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %202 = load i8, ptr %5, align 1, !tbaa !11, !range !15, !noundef !16
  %203 = trunc i8 %202 to i1
  br i1 %203, label %204, label %205

204:                                              ; preds = %200
  br label %206

205:                                              ; preds = %200
  br label %206

206:                                              ; preds = %205, %204
  %207 = phi ptr [ @.str.20, %204 ], [ @.str.21, %205 ]
  %208 = getelementptr inbounds [8 x i8], ptr %207, i64 0, i64 0
  call void (i32, ptr, ptr, i32, ptr, ...) %201(i32 noundef 1, ptr noundef @.str.18, ptr noundef @__func__.testDerivatives, i32 noundef 1045, ptr noundef @.str.121, ptr noundef %208)
  br label %209

209:                                              ; preds = %206, %197
  %210 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %211 = icmp sle i32 1, %210
  br i1 %211, label %212, label %226

212:                                              ; preds = %209
  %213 = load ptr, ptr @stderr, align 8, !tbaa !9
  %214 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %213, ptr noundef @.str.22, ptr noundef @__func__.testDerivatives, i32 noundef 1045) #7
  %215 = load ptr, ptr @stderr, align 8, !tbaa !9
  %216 = load i8, ptr %5, align 1, !tbaa !11, !range !15, !noundef !16
  %217 = trunc i8 %216 to i1
  br i1 %217, label %218, label %219

218:                                              ; preds = %212
  br label %220

219:                                              ; preds = %212
  br label %220

220:                                              ; preds = %219, %218
  %221 = phi ptr [ @.str.20, %218 ], [ @.str.21, %219 ]
  %222 = getelementptr inbounds [8 x i8], ptr %221, i64 0, i64 0
  %223 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %215, ptr noundef @.str.121, ptr noundef %222) #7
  %224 = load ptr, ptr @stderr, align 8, !tbaa !9
  %225 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %224, ptr noundef @.str.6) #7
  br label %226

226:                                              ; preds = %220, %209
  br label %227

227:                                              ; preds = %226
  br label %228

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

; Function Attrs: nounwind
declare i32 @rand() #1

declare zeroext i1 @Rcs_testGradient(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, double noundef, i1 noundef zeroext) #2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL6test_fPdPKdPv(ptr noundef, ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL7test_dfPdPKdPv(ptr noundef, ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL16test_LocalRotMatPdPKdPv(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL17test_dLocalRotMatPdPKdPv(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL19test_LocalRotMatRelPdPKdPv(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL20test_dLocalRotMatRelPdPKdPv(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL14test_AxisAnglePdPKdPv(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL21test_dAxisAngleDEulerPdPKdPv(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL8test_CylPdPKdPv(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL9test_dCylPdPKdPv(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare i32 @getchar() #6

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 = { noreturn 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 #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 = { mustprogress 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 #6 = { inlinehint 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 #7 = { nounwind }
attributes #8 = { noreturn 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 = !{}
!17 = !{!18, !10, i64 0}
!18 = !{!"_ZTS6_MatNd", !10, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !12, i64 20}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


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

%"class.Rcs::CmdLineParser" = type { i8 }

@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.57 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [60 x i8], align 1
@__func__.testDerivatives = external hidden unnamed_addr constant [16 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [21 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 @_ZN3Rcs13CmdLineParserC1EiPPc(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef, ptr noundef) unnamed_addr #2

declare noundef zeroext i1 @_ZNK3Rcs13CmdLineParser11getArgumentEPKcPdS2_z(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #2

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

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

declare void @MatNd_destroy(ptr noundef) local_unnamed_addr #2

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

declare void @print_trace() local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #3

declare noundef zeroext i1 @_ZNK3Rcs13CmdLineParser11getArgumentEPKcPiS2_z(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local zeroext i1 @testDerivatives(i32 noundef %0, ptr noundef %1) local_unnamed_addr #4 {
  %3 = alloca i32, align 4
  %4 = alloca double, align 8
  %5 = alloca %"class.Rcs::CmdLineParser", align 1
  %6 = alloca i32, align 4
  %7 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %8 = icmp sgt i32 %7, 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  store i32 10, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  store double 5.000000e-02, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #8
  call void @_ZN3Rcs13CmdLineParserC1EiPPc(ptr noundef nonnull align 1 dereferenceable(1) %5, i32 noundef %0, ptr noundef %1)
  %9 = call noundef zeroext i1 (ptr, ptr, ptr, ptr, ...) @_ZNK3Rcs13CmdLineParser11getArgumentEPKcPiS2_z(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef nonnull @.str.64, ptr noundef nonnull %3, ptr noundef nonnull @.str.109, i32 noundef 10)
  %10 = call noundef zeroext i1 (ptr, ptr, ptr, ptr, ...) @_ZNK3Rcs13CmdLineParser11getArgumentEPKcPdS2_z(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef nonnull @.str.110, ptr noundef nonnull %4, ptr noundef nonnull @.str.111, double noundef 5.000000e-02)
  %11 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !11
  %.not = icmp eq ptr %11, null
  br i1 %.not, label %13, label %12

12:                                               ; preds = %2
  call void (i32, ptr, ptr, i32, ptr, ...) %11(i32 noundef 2, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testDerivatives, i32 noundef 977, ptr noundef nonnull @.str.112)
  br label %13

13:                                               ; preds = %12, %2
  %14 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %15 = icmp sgt i32 %14, 1
  br i1 %15, label %16, label %23

16:                                               ; preds = %13
  %17 = load ptr, ptr @stderr, align 8, !tbaa !11
  %18 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testDerivatives, i32 noundef 977) #9
  %19 = load ptr, ptr @stderr, align 8, !tbaa !11
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef nonnull @.str.112) #9
  %21 = load ptr, ptr @stderr, align 8, !tbaa !11
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str.6) #9
  br label %23

23:                                               ; preds = %16, %13
  %24 = call ptr @MatNd_create(i32 noundef 3, i32 noundef 3)
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %114, %23
  %.026.lcssa = phi i1 [ true, %23 ], [ %115, %114 ]
  call void @MatNd_destroy(ptr noundef %24)
  %27 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !11
  %.not29 = icmp eq ptr %27, null
  br i1 %.not29, label %120, label %119

.lr.ph:                                           ; preds = %23, %114
  %.033 = phi i32 [ %116, %114 ], [ 0, %23 ]
  %.02632 = phi i1 [ %115, %114 ], [ true, %23 ]
  call void @MatNd_setRandom(ptr noundef %24, double noundef -1.000000e+00, double noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  %28 = call i32 @rand() #8
  %29 = sitofp i32 %28 to double
  %30 = fmul double %29, 0x3E00000000000000
  %31 = fmul double %30, 3.000000e+00
  %32 = fptosi double %31 to i32
  store i32 %32, ptr %6, align 4, !tbaa !5
  %or.cond = icmp ult i32 %32, 3
  br i1 %or.cond, label %36, label %33

33:                                               ; preds = %.lr.ph
  %34 = load ptr, ptr @stderr, align 8, !tbaa !11
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.57, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testDerivatives, i32 noundef 987, ptr noundef nonnull @.str.113) #9
  call void @print_trace()
  call void @abort() #10
  unreachable

36:                                               ; preds = %.lr.ph
  %37 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %38 = icmp sgt i32 %37, 1
  br i1 %38, label %39, label %42

39:                                               ; preds = %36
  %40 = load ptr, ptr @stderr, align 8, !tbaa !11
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef nonnull @.str.114) #9
  br label %42

42:                                               ; preds = %39, %36
  br i1 %.02632, label %43, label %47

43:                                               ; preds = %42
  %44 = load ptr, ptr %24, align 8, !tbaa !13
  %45 = load double, ptr %4, align 8, !tbaa !9
  %46 = call zeroext i1 @Rcs_testGradient(ptr noundef nonnull @_ZL6test_fPdPKdPv, ptr noundef nonnull @_ZL7test_dfPdPKdPv, ptr noundef null, ptr noundef %44, i32 noundef 5, i32 noundef 1, double noundef %45, i1 noundef zeroext %8)
  br label %47

47:                                               ; preds = %43, %42
  %48 = phi i1 [ false, %42 ], [ %46, %43 ]
  %49 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %50 = icmp sgt i32 %49, 1
  br i1 %50, label %51, label %54

51:                                               ; preds = %47
  %52 = load ptr, ptr @stderr, align 8, !tbaa !11
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef nonnull @.str.115) #9
  br label %54

54:                                               ; preds = %51, %47
  br i1 %48, label %55, label %59

55:                                               ; preds = %54
  %56 = load ptr, ptr %24, align 8, !tbaa !13
  %57 = load double, ptr %4, align 8, !tbaa !9
  %58 = call zeroext i1 @Rcs_testGradient(ptr noundef nonnull @_ZL16test_LocalRotMatPdPKdPv, ptr noundef nonnull @_ZL17test_dLocalRotMatPdPKdPv, ptr noundef nonnull %6, ptr noundef %56, i32 noundef 1, i32 noundef 9, double noundef %57, i1 noundef zeroext %8)
  br label %59

59:                                               ; preds = %55, %54
  %60 = phi i1 [ false, %54 ], [ %58, %55 ]
  %61 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %62 = icmp sgt i32 %61, 1
  br i1 %62, label %63, label %66

63:                                               ; preds = %59
  %64 = load ptr, ptr @stderr, align 8, !tbaa !11
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef nonnull @.str.116) #9
  br label %66

66:                                               ; preds = %63, %59
  br i1 %60, label %67, label %71

67:                                               ; preds = %66
  %68 = load ptr, ptr %24, align 8, !tbaa !13
  %69 = load double, ptr %4, align 8, !tbaa !9
  %70 = call zeroext i1 @Rcs_testGradient(ptr noundef nonnull @_ZL19test_LocalRotMatRelPdPKdPv, ptr noundef nonnull @_ZL20test_dLocalRotMatRelPdPKdPv, ptr noundef null, ptr noundef %68, i32 noundef 1, i32 noundef 9, double noundef %69, i1 noundef zeroext %8)
  br label %71

71:                                               ; preds = %67, %66
  %72 = phi i1 [ false, %66 ], [ %70, %67 ]
  %73 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %74 = icmp sgt i32 %73, 1
  br i1 %74, label %75, label %78

75:                                               ; preds = %71
  %76 = load ptr, ptr @stderr, align 8, !tbaa !11
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef nonnull @.str.117) #9
  br label %78

78:                                               ; preds = %75, %71
  br i1 %72, label %79, label %83

79:                                               ; preds = %78
  %80 = load ptr, ptr %24, align 8, !tbaa !13
  %81 = load double, ptr %4, align 8, !tbaa !9
  %82 = call zeroext i1 @Rcs_testGradient(ptr noundef nonnull @_ZL14test_AxisAnglePdPKdPv, ptr noundef nonnull @_ZL21test_dAxisAngleDEulerPdPKdPv, ptr noundef null, ptr noundef %80, i32 noundef 3, i32 noundef 1, double noundef %81, i1 noundef zeroext %8)
  br label %83

83:                                               ; preds = %79, %78
  %84 = phi i1 [ false, %78 ], [ %82, %79 ]
  %85 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %86 = icmp sgt i32 %85, 1
  br i1 %86, label %87, label %90

87:                                               ; preds = %83
  %88 = load ptr, ptr @stderr, align 8, !tbaa !11
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef nonnull @.str.118) #9
  br label %90

90:                                               ; preds = %87, %83
  br i1 %84, label %91, label %.thread

91:                                               ; preds = %90
  %92 = load ptr, ptr %24, align 8, !tbaa !13
  %93 = load double, ptr %4, align 8, !tbaa !9
  %94 = call zeroext i1 @Rcs_testGradient(ptr noundef nonnull @_ZL8test_CylPdPKdPv, ptr noundef nonnull @_ZL9test_dCylPdPKdPv, ptr noundef null, ptr noundef %92, i32 noundef 3, i32 noundef 3, double noundef %93, i1 noundef zeroext %8)
  %95 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %96 = icmp sgt i32 %95, 1
  br i1 %96, label %99, label %114

.thread:                                          ; preds = %90
  %97 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %98 = icmp sgt i32 %97, 1
  br i1 %98, label %.thread30, label %114

99:                                               ; preds = %91
  br i1 %94, label %105, label %.thread30

.thread30:                                        ; preds = %.thread, %99
  %100 = load ptr, ptr @stderr, align 8, !tbaa !11
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.119, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testDerivatives, i32 noundef 1031) #9
  %102 = load ptr, ptr @stderr, align 8, !tbaa !11
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef nonnull @.str.21) #9
  %104 = call i32 @getchar()
  br label %114

105:                                              ; preds = %99
  %106 = load ptr, ptr @stderr, align 8, !tbaa !11
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %106, ptr noundef nonnull @.str.22, ptr noundef nonnull @__func__.testDerivatives, i32 noundef 1035) #9
  %108 = load ptr, ptr @stderr, align 8, !tbaa !11
  %109 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %108, ptr noundef nonnull @.str.120) #9
  %110 = load ptr, ptr @stderr, align 8, !tbaa !11
  %111 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %110, ptr noundef nonnull @.str.6) #9
  %112 = load ptr, ptr @stderr, align 8, !tbaa !11
  %113 = call i32 @fflush(ptr noundef %112)
  br label %114

114:                                              ; preds = %.thread, %.thread30, %105, %91
  %115 = phi i1 [ false, %.thread ], [ false, %.thread30 ], [ true, %105 ], [ %94, %91 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  %116 = add nuw nsw i32 %.033, 1
  %117 = load i32, ptr %3, align 4, !tbaa !5
  %118 = icmp slt i32 %116, %117
  br i1 %118, label %.lr.ph, label %._crit_edge, !llvm.loop !16

119:                                              ; preds = %._crit_edge
  %.str.20..str.21 = select i1 %.026.lcssa, ptr @.str.20, ptr @.str.21
  call void (i32, ptr, ptr, i32, ptr, ...) %27(i32 noundef 1, ptr noundef nonnull @.str.18, ptr noundef nonnull @__func__.testDerivatives, i32 noundef 1045, ptr noundef nonnull @.str.121, ptr noundef nonnull %.str.20..str.21)
  br label %120

120:                                              ; preds = %119, %._crit_edge
  %121 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %122 = icmp sgt i32 %121, 0
  br i1 %122, label %123, label %130

123:                                              ; preds = %120
  %124 = load ptr, ptr @stderr, align 8, !tbaa !11
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %124, ptr noundef nonnull @.str.22, ptr noundef nonnull @__func__.testDerivatives, i32 noundef 1045) #9
  %126 = load ptr, ptr @stderr, align 8, !tbaa !11
  %.str.20..str.212 = select i1 %.026.lcssa, ptr @.str.20, ptr @.str.21
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %126, ptr noundef nonnull @.str.121, ptr noundef nonnull %.str.20..str.212) #9
  %128 = load ptr, ptr @stderr, align 8, !tbaa !11
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %128, ptr noundef nonnull @.str.6) #9
  br label %130

130:                                              ; preds = %123, %120
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  ret i1 %.026.lcssa
}

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #5

declare zeroext i1 @Rcs_testGradient(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, double noundef, i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL6test_fPdPKdPv(ptr noundef, ptr noundef, ptr noundef) #6

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL7test_dfPdPKdPv(ptr noundef, ptr noundef, ptr noundef) #6

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL16test_LocalRotMatPdPKdPv(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL17test_dLocalRotMatPdPKdPv(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL19test_LocalRotMatRelPdPKdPv(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL20test_dLocalRotMatRelPdPKdPv(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL14test_AxisAnglePdPKdPv(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL21test_dAxisAngleDEulerPdPKdPv(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL8test_CylPdPKdPv(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL9test_dCylPdPKdPv(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint mustprogress nofree nounwind uwtable
declare noundef i32 @getchar() local_unnamed_addr #7

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 = { noreturn 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 #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 "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 #6 = { mustprogress 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 #7 = { inlinehint mustprogress nofree 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 #8 = { nounwind }
attributes #9 = { cold nounwind }
attributes #10 = { noreturn 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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTS6_MatNd", !12, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !15, i64 20}
!15 = !{!"bool", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass