; LLVM IR from HRI-EU/Rcs :: src/RcsCore/ViaPointSequence.ll (ZNK3Rcs16ViaPointSequence7gnuplotEdddi)

; 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.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.5" = type { i8 }
%"class.Rcs::ViaPointSequence" = type { ptr, ptr, ptr, ptr, ptr, ptr, i8, i32, %"class.std::vector", %"class.std::vector.0" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct._MatNd = type { ptr, i32, i32, i32, i8 }

@stderr = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [43 x i8], align 1
@RCS_GLOBAL_RLOG_CB = external global ptr, align 8
@RcsLogLevel = external global i32, align 4
@.str.42 = external hidden unnamed_addr constant [16 x i8], align 1
@__func__._ZNK3Rcs16ViaPointSequence7gnuplotEdddi = external hidden unnamed_addr constant [8 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [246 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [23 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare i64 @lround(double noundef) #1

declare double @MatNd_get(ptr noundef, i32 noundef, i32 noundef) #2

declare zeroext i1 @Math_isBitSet(i32 noundef, i32 noundef) #2

declare void @MatNd_set(ptr noundef, i32 noundef, i32 noundef, double noundef) #2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

declare void @print_trace() #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare void @MatNd_destroy(ptr noundef) #2

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

declare i32 @fflush(ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3Rcs16ViaPointSequence7gnuplotEdddi(ptr noundef nonnull align 8 dereferenceable(104) %0, double noundef %1, double noundef %2, double noundef %3, i32 noundef %4) #4 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca [64 x i8], align 16
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  %20 = alloca [64 x i8], align 16
  %21 = alloca [64 x i8], align 16
  %22 = alloca [64 x i8], align 16
  %23 = alloca [256 x i8], align 16
  %24 = alloca [256 x i8], align 16
  %25 = alloca [256 x i8], align 16
  %26 = alloca [512 x i8], align 16
  %27 = alloca [64 x i8], align 16
  %28 = alloca [64 x i8], align 16
  %29 = alloca [64 x i8], align 16
  %30 = alloca [64 x i8], align 16
  %31 = alloca ptr, align 8
  %32 = alloca %"class.std::__cxx11::basic_string", align 8
  %33 = alloca %"class.std::allocator.5", align 1
  %34 = alloca ptr, align 8
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca %"class.std::__cxx11::basic_string", align 8
  %38 = alloca %"class.std::__cxx11::basic_string", align 8
  %39 = alloca %"class.std::allocator.5", align 1
  %40 = alloca %"class.std::__cxx11::basic_string", align 8
  %41 = alloca %"class.std::__cxx11::basic_string", align 8
  %42 = alloca %"class.std::allocator.5", align 1
  %43 = alloca %"class.std::__cxx11::basic_string", align 8
  %44 = alloca %"class.std::__cxx11::basic_string", align 8
  %45 = alloca %"class.std::allocator.5", align 1
  %46 = alloca %"class.std::__cxx11::basic_string", align 8
  %47 = alloca %"class.std::__cxx11::basic_string", align 8
  %48 = alloca %"class.std::allocator.5", align 1
  store ptr %0, ptr %6, align 8, !tbaa !5
  store double %1, ptr %7, align 8, !tbaa !9
  store double %2, ptr %8, align 8, !tbaa !9
  store double %3, ptr %9, align 8, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !11
  %49 = load ptr, ptr %6, align 8
  %50 = load double, ptr %8, align 8, !tbaa !9
  %51 = load double, ptr %7, align 8, !tbaa !9
  %52 = fcmp ole double %50, %51
  br i1 %52, label %53, label %75

53:                                               ; preds = %5
  br label %54

54:                                               ; preds = %53
  %55 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %56 = icmp ne ptr %55, null
  br i1 %56, label %57, label %61

57:                                               ; preds = %54
  %58 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %59 = load double, ptr %8, align 8, !tbaa !9
  %60 = load double, ptr %7, align 8, !tbaa !9
  call void (i32, ptr, ptr, i32, ptr, ...) %58(i32 noundef 1, ptr noundef @.str.2, ptr noundef @__func__._ZNK3Rcs16ViaPointSequence7gnuplotEdddi, i32 noundef 1123, ptr noundef @.str.48, double noundef %59, double noundef %60)
  br label %61

61:                                               ; preds = %57, %54
  %62 = load i32, ptr @RcsLogLevel, align 4, !tbaa !11
  %63 = icmp sle i32 1, %62
  br i1 %63, label %64, label %73

64:                                               ; preds = %61
  %65 = load ptr, ptr @stderr, align 8, !tbaa !5
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef @.str.42, ptr noundef @.str.2, ptr noundef @__func__._ZNK3Rcs16ViaPointSequence7gnuplotEdddi, i32 noundef 1123) #7
  %67 = load ptr, ptr @stderr, align 8, !tbaa !5
  %68 = load double, ptr %8, align 8, !tbaa !9
  %69 = load double, ptr %7, align 8, !tbaa !9
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef @.str.48, double noundef %68, double noundef %69) #7
  %71 = load ptr, ptr @stderr, align 8, !tbaa !5
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef @.str.4) #7
  br label %73

73:                                               ; preds = %64, %61
  br label %74

74:                                               ; preds = %73
  br label %496

75:                                               ; preds = %5
  %76 = load double, ptr %9, align 8, !tbaa !9
  %77 = fcmp ole double %76, 0.000000e+00
  br i1 %77, label %78, label %98

78:                                               ; preds = %75
  br label %79

79:                                               ; preds = %78
  %80 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %81 = icmp ne ptr %80, null
  br i1 %81, label %82, label %85

82:                                               ; preds = %79
  %83 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %84 = load double, ptr %9, align 8, !tbaa !9
  call void (i32, ptr, ptr, i32, ptr, ...) %83(i32 noundef 1, ptr noundef @.str.2, ptr noundef @__func__._ZNK3Rcs16ViaPointSequence7gnuplotEdddi, i32 noundef 1129, ptr noundef @.str.49, double noundef %84)
  br label %85

85:                                               ; preds = %82, %79
  %86 = load i32, ptr @RcsLogLevel, align 4, !tbaa !11
  %87 = icmp sle i32 1, %86
  br i1 %87, label %88, label %96

88:                                               ; preds = %85
  %89 = load ptr, ptr @stderr, align 8, !tbaa !5
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef @.str.42, ptr noundef @.str.2, ptr noundef @__func__._ZNK3Rcs16ViaPointSequence7gnuplotEdddi, i32 noundef 1129) #7
  %91 = load ptr, ptr @stderr, align 8, !tbaa !5
  %92 = load double, ptr %9, align 8, !tbaa !9
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef @.str.49, double noundef %92) #7
  %94 = load ptr, ptr @stderr, align 8, !tbaa !5
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef @.str.4) #7
  br label %96

96:                                               ; preds = %88, %85
  br label %97

97:                                               ; preds = %96
  br label %496

98:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %99 = load double, ptr %8, align 8, !tbaa !9
  %100 = load double, ptr %7, align 8, !tbaa !9
  %101 = fsub double %99, %100
  %102 = load double, ptr %9, align 8, !tbaa !9
  %103 = fdiv double %101, %102
  %104 = call i64 @lround(double noundef %103) #7
  %105 = mul nsw i64 4, %104
  %106 = trunc i64 %105 to i32
  %107 = call ptr @MatNd_create(i32 noundef 3, i32 noundef %106)
  store ptr %107, ptr %11, align 8, !tbaa !5
  %108 = load ptr, ptr %11, align 8, !tbaa !5
  %109 = load double, ptr %7, align 8, !tbaa !9
  %110 = load double, ptr %8, align 8, !tbaa !9
  %111 = load double, ptr %9, align 8, !tbaa !9
  call void @_ZNK3Rcs16ViaPointSequence17computeTrajectoryEP6_MatNdddd(ptr noundef nonnull align 8 dereferenceable(104) %49, ptr noundef %108, double noundef %109, double noundef %110, double noundef %111)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store i64 64, ptr %12, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 64, ptr %13) #7
  %112 = getelementptr inbounds [64 x i8], ptr %13, i64 0, i64 0
  call void @_ZL17getUniqueFileNamePc(ptr noundef %112)
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  call void @MatNd_transposeSelf(ptr noundef %113)
  %114 = load ptr, ptr %11, align 8, !tbaa !5
  %115 = getelementptr inbounds [64 x i8], ptr %13, i64 0, i64 0
  %116 = call zeroext i1 @MatNd_toFile(ptr noundef %114, ptr noundef %115)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %117 = getelementptr inbounds %"class.Rcs::ViaPointSequence", ptr %49, i32 0, i32 4
  %118 = load ptr, ptr %117, align 8, !tbaa !15
  %119 = getelementptr inbounds %struct._MatNd, ptr %118, i32 0, i32 1
  %120 = load i32, ptr %119, align 8, !tbaa !27
  %121 = call ptr @MatNd_create(i32 noundef %120, i32 noundef 2)
  store ptr %121, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %122 = getelementptr inbounds %"class.Rcs::ViaPointSequence", ptr %49, i32 0, i32 4
  %123 = load ptr, ptr %122, align 8, !tbaa !15
  %124 = getelementptr inbounds %struct._MatNd, ptr %123, i32 0, i32 1
  %125 = load i32, ptr %124, align 8, !tbaa !27
  %126 = call ptr @MatNd_create(i32 noundef %125, i32 noundef 2)
  store ptr %126, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %127 = getelementptr inbounds %"class.Rcs::ViaPointSequence", ptr %49, i32 0, i32 4
  %128 = load ptr, ptr %127, align 8, !tbaa !15
  %129 = getelementptr inbounds %struct._MatNd, ptr %128, i32 0, i32 1
  %130 = load i32, ptr %129, align 8, !tbaa !27
  %131 = call ptr @MatNd_create(i32 noundef %130, i32 noundef 2)
  store ptr %131, ptr %16, align 8, !tbaa !5
  %132 = load ptr, ptr %14, align 8, !tbaa !5
  call void @MatNd_reshape(ptr noundef %132, i32 noundef 0, i32 noundef 2)
  %133 = load ptr, ptr %15, align 8, !tbaa !5
  call void @MatNd_reshape(ptr noundef %133, i32 noundef 0, i32 noundef 2)
  %134 = load ptr, ptr %16, align 8, !tbaa !5
  call void @MatNd_reshape(ptr noundef %134, i32 noundef 0, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  store i64 0, ptr %17, align 8, !tbaa !13
  br label %135

135:                                              ; preds = %229, %98
  %136 = load i64, ptr %17, align 8, !tbaa !13
  %137 = getelementptr inbounds %"class.Rcs::ViaPointSequence", ptr %49, i32 0, i32 1
  %138 = load ptr, ptr %137, align 8, !tbaa !29
  %139 = getelementptr inbounds %struct._MatNd, ptr %138, i32 0, i32 1
  %140 = load i32, ptr %139, align 8, !tbaa !27
  %141 = zext i32 %140 to i64
  %142 = icmp ult i64 %136, %141
  br i1 %142, label %144, label %143

143:                                              ; preds = %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %232

144:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %145 = getelementptr inbounds %"class.Rcs::ViaPointSequence", ptr %49, i32 0, i32 1
  %146 = load ptr, ptr %145, align 8, !tbaa !29
  %147 = load i64, ptr %17, align 8, !tbaa !13
  %148 = trunc i64 %147 to i32
  %149 = call double @MatNd_get(ptr noundef %146, i32 noundef %148, i32 noundef 4)
  %150 = call i64 @lround(double noundef %149) #7
  %151 = trunc i64 %150 to i32
  store i32 %151, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %152 = getelementptr inbounds %"class.Rcs::ViaPointSequence", ptr %49, i32 0, i32 1
  %153 = load ptr, ptr %152, align 8, !tbaa !29
  %154 = load i64, ptr %17, align 8, !tbaa !13
  %155 = trunc i64 %154 to i32
  %156 = call double @MatNd_get(ptr noundef %153, i32 noundef %155, i32 noundef 0)
  store double %156, ptr %19, align 8, !tbaa !9
  %157 = load i32, ptr %18, align 4, !tbaa !11
  %158 = call zeroext i1 @Math_isBitSet(i32 noundef %157, i32 noundef 0)
  br i1 %158, label %159, label %180

159:                                              ; preds = %144
  %160 = load ptr, ptr %14, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct._MatNd, ptr %160, i32 0, i32 1
  %162 = load i32, ptr %161, align 8, !tbaa !27
  %163 = add i32 %162, 1
  store i32 %163, ptr %161, align 8, !tbaa !27
  %164 = load ptr, ptr %14, align 8, !tbaa !5
  %165 = load ptr, ptr %14, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct._MatNd, ptr %165, i32 0, i32 1
  %167 = load i32, ptr %166, align 8, !tbaa !27
  %168 = sub i32 %167, 1
  %169 = load double, ptr %19, align 8, !tbaa !9
  call void @MatNd_set(ptr noundef %164, i32 noundef %168, i32 noundef 0, double noundef %169)
  %170 = load ptr, ptr %14, align 8, !tbaa !5
  %171 = load ptr, ptr %14, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct._MatNd, ptr %171, i32 0, i32 1
  %173 = load i32, ptr %172, align 8, !tbaa !27
  %174 = sub i32 %173, 1
  %175 = getelementptr inbounds %"class.Rcs::ViaPointSequence", ptr %49, i32 0, i32 1
  %176 = load ptr, ptr %175, align 8, !tbaa !29
  %177 = load i64, ptr %17, align 8, !tbaa !13
  %178 = trunc i64 %177 to i32
  %179 = call double @MatNd_get(ptr noundef %176, i32 noundef %178, i32 noundef 1)
  call void @MatNd_set(ptr noundef %170, i32 noundef %174, i32 noundef 1, double noundef %179)
  br label %180

180:                                              ; preds = %159, %144
  %181 = load i32, ptr %18, align 4, !tbaa !11
  %182 = call zeroext i1 @Math_isBitSet(i32 noundef %181, i32 noundef 1)
  br i1 %182, label %183, label %204

183:                                              ; preds = %180
  %184 = load ptr, ptr %15, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct._MatNd, ptr %184, i32 0, i32 1
  %186 = load i32, ptr %185, align 8, !tbaa !27
  %187 = add i32 %186, 1
  store i32 %187, ptr %185, align 8, !tbaa !27
  %188 = load ptr, ptr %15, align 8, !tbaa !5
  %189 = load ptr, ptr %15, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct._MatNd, ptr %189, i32 0, i32 1
  %191 = load i32, ptr %190, align 8, !tbaa !27
  %192 = sub i32 %191, 1
  %193 = load double, ptr %19, align 8, !tbaa !9
  call void @MatNd_set(ptr noundef %188, i32 noundef %192, i32 noundef 0, double noundef %193)
  %194 = load ptr, ptr %15, align 8, !tbaa !5
  %195 = load ptr, ptr %15, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct._MatNd, ptr %195, i32 0, i32 1
  %197 = load i32, ptr %196, align 8, !tbaa !27
  %198 = sub i32 %197, 1
  %199 = getelementptr inbounds %"class.Rcs::ViaPointSequence", ptr %49, i32 0, i32 1
  %200 = load ptr, ptr %199, align 8, !tbaa !29
  %201 = load i64, ptr %17, align 8, !tbaa !13
  %202 = trunc i64 %201 to i32
  %203 = call double @MatNd_get(ptr noundef %200, i32 noundef %202, i32 noundef 2)
  call void @MatNd_set(ptr noundef %194, i32 noundef %198, i32 noundef 1, double noundef %203)
  br label %204

204:                                              ; preds = %183, %180
  %205 = load i32, ptr %18, align 4, !tbaa !11
  %206 = call zeroext i1 @Math_isBitSet(i32 noundef %205, i32 noundef 2)
  br i1 %206, label %207, label %228

207:                                              ; preds = %204
  %208 = load ptr, ptr %16, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct._MatNd, ptr %208, i32 0, i32 1
  %210 = load i32, ptr %209, align 8, !tbaa !27
  %211 = add i32 %210, 1
  store i32 %211, ptr %209, align 8, !tbaa !27
  %212 = load ptr, ptr %16, align 8, !tbaa !5
  %213 = load ptr, ptr %16, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct._MatNd, ptr %213, i32 0, i32 1
  %215 = load i32, ptr %214, align 8, !tbaa !27
  %216 = sub i32 %215, 1
  %217 = load double, ptr %19, align 8, !tbaa !9
  call void @MatNd_set(ptr noundef %212, i32 noundef %216, i32 noundef 0, double noundef %217)
  %218 = load ptr, ptr %16, align 8, !tbaa !5
  %219 = load ptr, ptr %16, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct._MatNd, ptr %219, i32 0, i32 1
  %221 = load i32, ptr %220, align 8, !tbaa !27
  %222 = sub i32 %221, 1
  %223 = getelementptr inbounds %"class.Rcs::ViaPointSequence", ptr %49, i32 0, i32 1
  %224 = load ptr, ptr %223, align 8, !tbaa !29
  %225 = load i64, ptr %17, align 8, !tbaa !13
  %226 = trunc i64 %225 to i32
  %227 = call double @MatNd_get(ptr noundef %224, i32 noundef %226, i32 noundef 3)
  call void @MatNd_set(ptr noundef %218, i32 noundef %222, i32 noundef 1, double noundef %227)
  br label %228

228:                                              ; preds = %207, %204
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %229

229:                                              ; preds = %228
  %230 = load i64, ptr %17, align 8, !tbaa !13
  %231 = add i64 %230, 1
  store i64 %231, ptr %17, align 8, !tbaa !13
  br label %135, !llvm.loop !30

232:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #7
  %233 = getelementptr inbounds [64 x i8], ptr %20, i64 0, i64 0
  call void @_ZL17getUniqueFileNamePc(ptr noundef %233)
  %234 = getelementptr inbounds [64 x i8], ptr %21, i64 0, i64 0
  call void @_ZL17getUniqueFileNamePc(ptr noundef %234)
  %235 = getelementptr inbounds [64 x i8], ptr %22, i64 0, i64 0
  call void @_ZL17getUniqueFileNamePc(ptr noundef %235)
  %236 = load ptr, ptr %14, align 8, !tbaa !5
  %237 = getelementptr inbounds [64 x i8], ptr %20, i64 0, i64 0
  %238 = call zeroext i1 @MatNd_toFile(ptr noundef %236, ptr noundef %237)
  %239 = load ptr, ptr %15, align 8, !tbaa !5
  %240 = getelementptr inbounds [64 x i8], ptr %21, i64 0, i64 0
  %241 = call zeroext i1 @MatNd_toFile(ptr noundef %239, ptr noundef %240)
  %242 = load ptr, ptr %16, align 8, !tbaa !5
  %243 = getelementptr inbounds [64 x i8], ptr %22, i64 0, i64 0
  %244 = call zeroext i1 @MatNd_toFile(ptr noundef %242, ptr noundef %243)
  %245 = load ptr, ptr %14, align 8, !tbaa !5
  call void @MatNd_destroy(ptr noundef %245)
  %246 = load ptr, ptr %15, align 8, !tbaa !5
  call void @MatNd_destroy(ptr noundef %246)
  %247 = load ptr, ptr %16, align 8, !tbaa !5
  call void @MatNd_destroy(ptr noundef %247)
  call void @llvm.lifetime.start.p0(i64 256, ptr %23) #7
  %248 = getelementptr inbounds [256 x i8], ptr %23, i64 0, i64 0
  %249 = getelementptr inbounds [64 x i8], ptr %13, i64 0, i64 0
  %250 = getelementptr inbounds [64 x i8], ptr %20, i64 0, i64 0
  %251 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %248, ptr noundef @.str.50, ptr noundef %249, ptr noundef %250) #7
  call void @llvm.lifetime.start.p0(i64 256, ptr %24) #7
  %252 = getelementptr inbounds [256 x i8], ptr %24, i64 0, i64 0
  %253 = getelementptr inbounds [64 x i8], ptr %13, i64 0, i64 0
  %254 = getelementptr inbounds [64 x i8], ptr %21, i64 0, i64 0
  %255 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %252, ptr noundef @.str.51, ptr noundef %253, ptr noundef %254) #7
  br label %256

256:                                              ; preds = %232
  %257 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %258 = icmp ne ptr %257, null
  br i1 %258, label %259, label %262

259:                                              ; preds = %256
  %260 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %261 = getelementptr inbounds [256 x i8], ptr %24, i64 0, i64 0
  call void (i32, ptr, ptr, i32, ptr, ...) %260(i32 noundef 0, ptr noundef @.str.2, ptr noundef @__func__._ZNK3Rcs16ViaPointSequence7gnuplotEdddi, i32 noundef 1211, ptr noundef @.str.52, ptr noundef %261)
  br label %262

262:                                              ; preds = %259, %256
  %263 = load i32, ptr @RcsLogLevel, align 4, !tbaa !11
  %264 = icmp sle i32 0, %263
  br i1 %264, label %265, label %273

265:                                              ; preds = %262
  %266 = load ptr, ptr @stderr, align 8, !tbaa !5
  %267 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %266, ptr noundef @.str.42, ptr noundef @.str.2, ptr noundef @__func__._ZNK3Rcs16ViaPointSequence7gnuplotEdddi, i32 noundef 1211) #7
  %268 = load ptr, ptr @stderr, align 8, !tbaa !5
  %269 = getelementptr inbounds [256 x i8], ptr %24, i64 0, i64 0
  %270 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %268, ptr noundef @.str.52, ptr noundef %269) #7
  %271 = load ptr, ptr @stderr, align 8, !tbaa !5
  %272 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %271, ptr noundef @.str.4) #7
  br label %273

273:                                              ; preds = %265, %262
  br label %274

274:                                              ; preds = %273
  br label %275

275:                                              ; preds = %274
  call void @llvm.lifetime.start.p0(i64 256, ptr %25) #7
  %276 = getelementptr inbounds [256 x i8], ptr %25, i64 0, i64 0
  %277 = getelementptr inbounds [64 x i8], ptr %13, i64 0, i64 0
  %278 = getelementptr inbounds [64 x i8], ptr %22, i64 0, i64 0
  %279 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %276, ptr noundef @.str.53, ptr noundef %277, ptr noundef %278) #7
  call void @llvm.lifetime.start.p0(i64 512, ptr %26) #7
  %280 = getelementptr inbounds [512 x i8], ptr %26, i64 0, i64 0
  %281 = getelementptr inbounds [64 x i8], ptr %13, i64 0, i64 0
  %282 = getelementptr inbounds [64 x i8], ptr %13, i64 0, i64 0
  %283 = getelementptr inbounds [64 x i8], ptr %13, i64 0, i64 0
  %284 = getelementptr inbounds [64 x i8], ptr %20, i64 0, i64 0
  %285 = getelementptr inbounds [64 x i8], ptr %21, i64 0, i64 0
  %286 = getelementptr inbounds [64 x i8], ptr %22, i64 0, i64 0
  %287 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %280, ptr noundef @.str.54, ptr noundef %281, ptr noundef %282, ptr noundef %283, ptr noundef %284, ptr noundef %285, ptr noundef %286) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %30) #7
  %288 = getelementptr inbounds [64 x i8], ptr %27, i64 0, i64 0
  call void @_ZL17getUniqueFileNamePc(ptr noundef %288)
  %289 = getelementptr inbounds [64 x i8], ptr %28, i64 0, i64 0
  call void @_ZL17getUniqueFileNamePc(ptr noundef %289)
  %290 = getelementptr inbounds [64 x i8], ptr %29, i64 0, i64 0
  call void @_ZL17getUniqueFileNamePc(ptr noundef %290)
  %291 = getelementptr inbounds [64 x i8], ptr %30, i64 0, i64 0
  call void @_ZL17getUniqueFileNamePc(ptr noundef %291)
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %292 = getelementptr inbounds [64 x i8], ptr %27, i64 0, i64 0
  %293 = call noalias ptr @fopen(ptr noundef %292, ptr noundef @.str.55)
  store ptr %293, ptr %31, align 8, !tbaa !5
  br label %294

294:                                              ; preds = %275
  %295 = load ptr, ptr %31, align 8, !tbaa !5
  %296 = icmp ne ptr %295, null
  br i1 %296, label %300, label %297

297:                                              ; preds = %294
  %298 = load ptr, ptr @stderr, align 8, !tbaa !5
  %299 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %298, ptr noundef @.str.10, ptr noundef @.str.2, ptr noundef @__func__._ZNK3Rcs16ViaPointSequence7gnuplotEdddi, i32 noundef 1237, ptr noundef @.str.56) #7
  call void @print_trace()
  call void @abort() #8
  unreachable

300:                                              ; preds = %294
  br label %301

301:                                              ; preds = %300
  br label %302

302:                                              ; preds = %301
  %303 = load ptr, ptr %31, align 8, !tbaa !5
  %304 = getelementptr inbounds [512 x i8], ptr %26, i64 0, i64 0
  %305 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %303, ptr noundef @.str.52, ptr noundef %304) #7
  %306 = load ptr, ptr %31, align 8, !tbaa !5
  %307 = call i32 @fflush(ptr noundef %306)
  %308 = load ptr, ptr %31, align 8, !tbaa !5
  %309 = call i32 @fclose(ptr noundef %308)
  %310 = getelementptr inbounds [64 x i8], ptr %28, i64 0, i64 0
  %311 = call noalias ptr @fopen(ptr noundef %310, ptr noundef @.str.55)
  store ptr %311, ptr %31, align 8, !tbaa !5
  br label %312

312:                                              ; preds = %302
  %313 = load ptr, ptr %31, align 8, !tbaa !5
  %314 = icmp ne ptr %313, null
  br i1 %314, label %318, label %315

315:                                              ; preds = %312
  %316 = load ptr, ptr @stderr, align 8, !tbaa !5
  %317 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %316, ptr noundef @.str.10, ptr noundef @.str.2, ptr noundef @__func__._ZNK3Rcs16ViaPointSequence7gnuplotEdddi, i32 noundef 1243, ptr noundef @.str.56) #7
  call void @print_trace()
  call void @abort() #8
  unreachable

318:                                              ; preds = %312
  br label %319

319:                                              ; preds = %318
  br label %320

320:                                              ; preds = %319
  %321 = load ptr, ptr %31, align 8, !tbaa !5
  %322 = getelementptr inbounds [256 x i8], ptr %23, i64 0, i64 0
  %323 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %321, ptr noundef @.str.52, ptr noundef %322) #7
  %324 = load ptr, ptr %31, align 8, !tbaa !5
  %325 = call i32 @fflush(ptr noundef %324)
  %326 = load ptr, ptr %31, align 8, !tbaa !5
  %327 = call i32 @fclose(ptr noundef %326)
  %328 = getelementptr inbounds [64 x i8], ptr %29, i64 0, i64 0
  %329 = call noalias ptr @fopen(ptr noundef %328, ptr noundef @.str.55)
  store ptr %329, ptr %31, align 8, !tbaa !5
  br label %330

330:                                              ; preds = %320
  %331 = load ptr, ptr %31, align 8, !tbaa !5
  %332 = icmp ne ptr %331, null
  br i1 %332, label %336, label %333

333:                                              ; preds = %330
  %334 = load ptr, ptr @stderr, align 8, !tbaa !5
  %335 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %334, ptr noundef @.str.10, ptr noundef @.str.2, ptr noundef @__func__._ZNK3Rcs16ViaPointSequence7gnuplotEdddi, i32 noundef 1249, ptr noundef @.str.56) #7
  call void @print_trace()
  call void @abort() #8
  unreachable

336:                                              ; preds = %330
  br label %337

337:                                              ; preds = %336
  br label %338

338:                                              ; preds = %337
  %339 = load ptr, ptr %31, align 8, !tbaa !5
  %340 = getelementptr inbounds [256 x i8], ptr %24, i64 0, i64 0
  %341 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %339, ptr noundef @.str.52, ptr noundef %340) #7
  %342 = load ptr, ptr %31, align 8, !tbaa !5
  %343 = call i32 @fflush(ptr noundef %342)
  %344 = load ptr, ptr %31, align 8, !tbaa !5
  %345 = call i32 @fclose(ptr noundef %344)
  %346 = getelementptr inbounds [64 x i8], ptr %30, i64 0, i64 0
  %347 = call noalias ptr @fopen(ptr noundef %346, ptr noundef @.str.55)
  store ptr %347, ptr %31, align 8, !tbaa !5
  br label %348

348:                                              ; preds = %338
  %349 = load ptr, ptr %31, align 8, !tbaa !5
  %350 = icmp ne ptr %349, null
  br i1 %350, label %354, label %351

351:                                              ; preds = %348
  %352 = load ptr, ptr @stderr, align 8, !tbaa !5
  %353 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %352, ptr noundef @.str.10, ptr noundef @.str.2, ptr noundef @__func__._ZNK3Rcs16ViaPointSequence7gnuplotEdddi, i32 noundef 1255, ptr noundef @.str.56) #7
  call void @print_trace()
  call void @abort() #8
  unreachable

354:                                              ; preds = %348
  br label %355

355:                                              ; preds = %354
  br label %356

356:                                              ; preds = %355
  %357 = load ptr, ptr %31, align 8, !tbaa !5
  %358 = getelementptr inbounds [256 x i8], ptr %25, i64 0, i64 0
  %359 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %357, ptr noundef @.str.52, ptr noundef %358) #7
  %360 = load ptr, ptr %31, align 8, !tbaa !5
  %361 = call i32 @fflush(ptr noundef %360)
  %362 = load ptr, ptr %31, align 8, !tbaa !5
  %363 = call i32 @fclose(ptr noundef %362)
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef @.str.57, ptr noundef nonnull align 1 dereferenceable(1) %33)
          to label %364 unwind label %374

364:                                              ; preds = %356
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  store i32 -1, ptr %36, align 4, !tbaa !11
  %365 = load i32, ptr %10, align 4, !tbaa !11
  %366 = icmp eq i32 %365, 7
  br i1 %366, label %367, label %392

367:                                              ; preds = %364
  call void @llvm.lifetime.start.p0(i64 32, ptr %37) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %38) #7
  %368 = getelementptr inbounds [64 x i8], ptr %27, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef %368, ptr noundef nonnull align 1 dereferenceable(1) %39)
          to label %369 unwind label %378

369:                                              ; preds = %367
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %37, ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(32) %38)
          to label %370 unwind label %382

370:                                              ; preds = %369
  %371 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %37) #7
  %372 = invoke i32 @system(ptr noundef %371)
          to label %373 unwind label %386

373:                                              ; preds = %370
  store i32 %372, ptr %36, align 4, !tbaa !11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #7
  br label %472

374:                                              ; preds = %356
  %375 = landingpad { ptr, i32 }
          cleanup
  %376 = extractvalue { ptr, i32 } %375, 0
  store ptr %376, ptr %34, align 8
  %377 = extractvalue { ptr, i32 } %375, 1
  store i32 %377, ptr %35, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #7
  br label %498

378:                                              ; preds = %367
  %379 = landingpad { ptr, i32 }
          cleanup
  %380 = extractvalue { ptr, i32 } %379, 0
  store ptr %380, ptr %34, align 8
  %381 = extractvalue { ptr, i32 } %379, 1
  store i32 %381, ptr %35, align 4
  br label %391

382:                                              ; preds = %369
  %383 = landingpad { ptr, i32 }
          cleanup
  %384 = extractvalue { ptr, i32 } %383, 0
  store ptr %384, ptr %34, align 8
  %385 = extractvalue { ptr, i32 } %383, 1
  store i32 %385, ptr %35, align 4
  br label %390

386:                                              ; preds = %370
  %387 = landingpad { ptr, i32 }
          cleanup
  %388 = extractvalue { ptr, i32 } %387, 0
  store ptr %388, ptr %34, align 8
  %389 = extractvalue { ptr, i32 } %387, 1
  store i32 %389, ptr %35, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #7
  br label %390

390:                                              ; preds = %386, %382
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #7
  br label %391

391:                                              ; preds = %390, %378
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #7
  br label %497

392:                                              ; preds = %364
  %393 = load i32, ptr %10, align 4, !tbaa !11
  %394 = invoke zeroext i1 @Math_isBitSet(i32 noundef %393, i32 noundef 0)
          to label %395 unwind label %403

395:                                              ; preds = %392
  br i1 %394, label %396, label %421

396:                                              ; preds = %395
  call void @llvm.lifetime.start.p0(i64 32, ptr %40) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %41) #7
  %397 = getelementptr inbounds [64 x i8], ptr %28, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 1, ptr %42) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %41, ptr noundef %397, ptr noundef nonnull align 1 dereferenceable(1) %42)
          to label %398 unwind label %407

398:                                              ; preds = %396
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %40, ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(32) %41)
          to label %399 unwind label %411

399:                                              ; preds = %398
  %400 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %40) #7
  %401 = invoke i32 @system(ptr noundef %400)
          to label %402 unwind label %415

402:                                              ; preds = %399
  store i32 %401, ptr %36, align 4, !tbaa !11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %40) #7
  br label %421

403:                                              ; preds = %479, %446, %421, %392
  %404 = landingpad { ptr, i32 }
          cleanup
  %405 = extractvalue { ptr, i32 } %404, 0
  store ptr %405, ptr %34, align 8
  %406 = extractvalue { ptr, i32 } %404, 1
  store i32 %406, ptr %35, align 4
  br label %497

407:                                              ; preds = %396
  %408 = landingpad { ptr, i32 }
          cleanup
  %409 = extractvalue { ptr, i32 } %408, 0
  store ptr %409, ptr %34, align 8
  %410 = extractvalue { ptr, i32 } %408, 1
  store i32 %410, ptr %35, align 4
  br label %420

411:                                              ; preds = %398
  %412 = landingpad { ptr, i32 }
          cleanup
  %413 = extractvalue { ptr, i32 } %412, 0
  store ptr %413, ptr %34, align 8
  %414 = extractvalue { ptr, i32 } %412, 1
  store i32 %414, ptr %35, align 4
  br label %419

415:                                              ; preds = %399
  %416 = landingpad { ptr, i32 }
          cleanup
  %417 = extractvalue { ptr, i32 } %416, 0
  store ptr %417, ptr %34, align 8
  %418 = extractvalue { ptr, i32 } %416, 1
  store i32 %418, ptr %35, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #7
  br label %419

419:                                              ; preds = %415, %411
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #7
  br label %420

420:                                              ; preds = %419, %407
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %40) #7
  br label %497

421:                                              ; preds = %402, %395
  %422 = load i32, ptr %10, align 4, !tbaa !11
  %423 = invoke zeroext i1 @Math_isBitSet(i32 noundef %422, i32 noundef 1)
          to label %424 unwind label %403

424:                                              ; preds = %421
  br i1 %423, label %425, label %446

425:                                              ; preds = %424
  call void @llvm.lifetime.start.p0(i64 32, ptr %43) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %44) #7
  %426 = getelementptr inbounds [64 x i8], ptr %29, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 1, ptr %45) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef %426, ptr noundef nonnull align 1 dereferenceable(1) %45)
          to label %427 unwind label %432

427:                                              ; preds = %425
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %43, ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(32) %44)
          to label %428 unwind label %436

428:                                              ; preds = %427
  %429 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %43) #7
  %430 = invoke i32 @system(ptr noundef %429)
          to label %431 unwind label %440

431:                                              ; preds = %428
  store i32 %430, ptr %36, align 4, !tbaa !11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %43) #7
  br label %446

432:                                              ; preds = %425
  %433 = landingpad { ptr, i32 }
          cleanup
  %434 = extractvalue { ptr, i32 } %433, 0
  store ptr %434, ptr %34, align 8
  %435 = extractvalue { ptr, i32 } %433, 1
  store i32 %435, ptr %35, align 4
  br label %445

436:                                              ; preds = %427
  %437 = landingpad { ptr, i32 }
          cleanup
  %438 = extractvalue { ptr, i32 } %437, 0
  store ptr %438, ptr %34, align 8
  %439 = extractvalue { ptr, i32 } %437, 1
  store i32 %439, ptr %35, align 4
  br label %444

440:                                              ; preds = %428
  %441 = landingpad { ptr, i32 }
          cleanup
  %442 = extractvalue { ptr, i32 } %441, 0
  store ptr %442, ptr %34, align 8
  %443 = extractvalue { ptr, i32 } %441, 1
  store i32 %443, ptr %35, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #7
  br label %444

444:                                              ; preds = %440, %436
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #7
  br label %445

445:                                              ; preds = %444, %432
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %43) #7
  br label %497

446:                                              ; preds = %431, %424
  %447 = load i32, ptr %10, align 4, !tbaa !11
  %448 = invoke zeroext i1 @Math_isBitSet(i32 noundef %447, i32 noundef 2)
          to label %449 unwind label %403

449:                                              ; preds = %446
  br i1 %448, label %450, label %471

450:                                              ; preds = %449
  call void @llvm.lifetime.start.p0(i64 32, ptr %46) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %47) #7
  %451 = getelementptr inbounds [64 x i8], ptr %30, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 1, ptr %48) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef %451, ptr noundef nonnull align 1 dereferenceable(1) %48)
          to label %452 unwind label %457

452:                                              ; preds = %450
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %46, ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(32) %47)
          to label %453 unwind label %461

453:                                              ; preds = %452
  %454 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %46) #7
  %455 = invoke i32 @system(ptr noundef %454)
          to label %456 unwind label %465

456:                                              ; preds = %453
  store i32 %455, ptr %36, align 4, !tbaa !11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %46) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %48) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %46) #7
  br label %471

457:                                              ; preds = %450
  %458 = landingpad { ptr, i32 }
          cleanup
  %459 = extractvalue { ptr, i32 } %458, 0
  store ptr %459, ptr %34, align 8
  %460 = extractvalue { ptr, i32 } %458, 1
  store i32 %460, ptr %35, align 4
  br label %470

461:                                              ; preds = %452
  %462 = landingpad { ptr, i32 }
          cleanup
  %463 = extractvalue { ptr, i32 } %462, 0
  store ptr %463, ptr %34, align 8
  %464 = extractvalue { ptr, i32 } %462, 1
  store i32 %464, ptr %35, align 4
  br label %469

465:                                              ; preds = %453
  %466 = landingpad { ptr, i32 }
          cleanup
  %467 = extractvalue { ptr, i32 } %466, 0
  store ptr %467, ptr %34, align 8
  %468 = extractvalue { ptr, i32 } %466, 1
  store i32 %468, ptr %35, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %46) #7
  br label %469

469:                                              ; preds = %465, %461
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #7
  br label %470

470:                                              ; preds = %469, %457
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %48) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %46) #7
  br label %497

471:                                              ; preds = %456, %449
  br label %472

472:                                              ; preds = %471, %373
  %473 = load i32, ptr %36, align 4, !tbaa !11
  %474 = icmp eq i32 %473, -1
  br i1 %474, label %475, label %495

475:                                              ; preds = %472
  br label %476

476:                                              ; preds = %475
  %477 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %478 = icmp ne ptr %477, null
  br i1 %478, label %479, label %482

479:                                              ; preds = %476
  %480 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  invoke void (i32, ptr, ptr, i32, ptr, ...) %480(i32 noundef 1, ptr noundef @.str.2, ptr noundef @__func__._ZNK3Rcs16ViaPointSequence7gnuplotEdddi, i32 noundef 1292, ptr noundef @.str.58)
          to label %481 unwind label %403

481:                                              ; preds = %479
  br label %482

482:                                              ; preds = %481, %476
  %483 = load i32, ptr @RcsLogLevel, align 4, !tbaa !11
  %484 = icmp sle i32 1, %483
  br i1 %484, label %485, label %492

485:                                              ; preds = %482
  %486 = load ptr, ptr @stderr, align 8, !tbaa !5
  %487 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %486, ptr noundef @.str.42, ptr noundef @.str.2, ptr noundef @__func__._ZNK3Rcs16ViaPointSequence7gnuplotEdddi, i32 noundef 1292) #7
  %488 = load ptr, ptr @stderr, align 8, !tbaa !5
  %489 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %488, ptr noundef @.str.58) #7
  %490 = load ptr, ptr @stderr, align 8, !tbaa !5
  %491 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %490, ptr noundef @.str.4) #7
  br label %492

492:                                              ; preds = %485, %482
  br label %493

493:                                              ; preds = %492
  br label %494

494:                                              ; preds = %493
  br label %495

495:                                              ; preds = %494, %472
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 256, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 256, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 256, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %496

496:                                              ; preds = %495, %97, %74
  ret void

497:                                              ; preds = %470, %445, %420, %403, %391
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #7
  br label %498

498:                                              ; preds = %497, %374
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 256, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 256, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 256, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %499

499:                                              ; preds = %498
  %500 = load ptr, ptr %34, align 8
  %501 = load i32, ptr %35, align 4
  %502 = insertvalue { ptr, i32 } poison, ptr %500, 0
  %503 = insertvalue { ptr, i32 } %502, i32 %501, 1
  resume { ptr, i32 } %503
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3Rcs16ViaPointSequence17computeTrajectoryEP6_MatNdddd(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef, double noundef, double noundef, double noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZL17getUniqueFileNamePc(ptr noundef) #5

declare void @MatNd_transposeSelf(ptr noundef) #2

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

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

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #1

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

declare i32 @fclose(ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

declare i32 @system(ptr noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_OS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #5

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #6 align 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 = { 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 = { 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 #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 = { 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 = !{!"any pointer", !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 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !6, i64 32}
!16 = !{!"_ZTSN3Rcs16ViaPointSequenceE", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !17, i64 48, !18, i64 52, !19, i64 56, !23, i64 80}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTSN3Rcs16ViaPointSequence12ViaPointTypeE", !7, i64 0}
!19 = !{!"_ZTSSt6vectorIiSaIiEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSSt6vectorIdSaIdEE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!28, !12, i64 8}
!28 = !{!"_ZTS6_MatNd", !6, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !17, i64 20}
!29 = !{!16, !6, i64 8}
!30 = distinct !{!30, !31}
!31 = !{!"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.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.5" = type { i8 }

@stderr = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [43 x i8], align 1
@RCS_GLOBAL_RLOG_CB = external local_unnamed_addr global ptr, align 8
@RcsLogLevel = external local_unnamed_addr global i32, align 4
@.str.42 = external hidden unnamed_addr constant [16 x i8], align 1
@__func__._ZNK3Rcs16ViaPointSequence7gnuplotEdddi = external hidden unnamed_addr constant [8 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [246 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [23 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare i64 @lround(double noundef) local_unnamed_addr #1

declare double @MatNd_get(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare zeroext i1 @Math_isBitSet(i32 noundef, i32 noundef) local_unnamed_addr #2

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

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

declare void @print_trace() local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare void @MatNd_destroy(ptr noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3Rcs16ViaPointSequence7gnuplotEdddi(ptr noundef nonnull align 8 dereferenceable(104) %0, double noundef %1, double noundef %2, double noundef %3, i32 noundef %4) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca [64 x i8], align 16
  %7 = alloca [64 x i8], align 16
  %8 = alloca [64 x i8], align 16
  %9 = alloca [64 x i8], align 16
  %10 = alloca [256 x i8], align 16
  %11 = alloca [256 x i8], align 16
  %12 = alloca [256 x i8], align 16
  %13 = alloca [512 x i8], align 16
  %14 = alloca [64 x i8], align 16
  %15 = alloca [64 x i8], align 16
  %16 = alloca [64 x i8], align 16
  %17 = alloca [64 x i8], align 16
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::allocator.5", align 1
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::allocator.5", align 1
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::allocator.5", align 1
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::allocator.5", align 1
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca %"class.std::allocator.5", align 1
  %32 = fcmp ugt double %2, %1
  br i1 %32, label %46, label %33

33:                                               ; preds = %5
  %34 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not127 = icmp eq ptr %34, null
  br i1 %.not127, label %36, label %35

35:                                               ; preds = %33
  tail call void (i32, ptr, ptr, i32, ptr, ...) %34(i32 noundef 1, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__._ZNK3Rcs16ViaPointSequence7gnuplotEdddi, i32 noundef 1123, ptr noundef nonnull @.str.48, double noundef %2, double noundef %1)
  br label %36

36:                                               ; preds = %35, %33
  %37 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %38 = icmp sgt i32 %37, 0
  br i1 %38, label %39, label %268

39:                                               ; preds = %36
  %40 = load ptr, ptr @stderr, align 8, !tbaa !5
  %41 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef nonnull @.str.42, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__._ZNK3Rcs16ViaPointSequence7gnuplotEdddi, i32 noundef 1123) #9
  %42 = load ptr, ptr @stderr, align 8, !tbaa !5
  %43 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.48, double noundef %2, double noundef %1) #9
  %44 = load ptr, ptr @stderr, align 8, !tbaa !5
  %45 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str.4) #9
  br label %268

46:                                               ; preds = %5
  %47 = fcmp ugt double %3, 0.000000e+00
  br i1 %47, label %61, label %48

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

50:                                               ; preds = %48
  tail call void (i32, ptr, ptr, i32, ptr, ...) %49(i32 noundef 1, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__._ZNK3Rcs16ViaPointSequence7gnuplotEdddi, i32 noundef 1129, ptr noundef nonnull @.str.49, double noundef %3)
  br label %51

51:                                               ; preds = %50, %48
  %52 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %53 = icmp sgt i32 %52, 0
  br i1 %53, label %54, label %268

54:                                               ; preds = %51
  %55 = load ptr, ptr @stderr, align 8, !tbaa !5
  %56 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef nonnull @.str.42, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__._ZNK3Rcs16ViaPointSequence7gnuplotEdddi, i32 noundef 1129) #9
  %57 = load ptr, ptr @stderr, align 8, !tbaa !5
  %58 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef nonnull @.str.49, double noundef %3) #9
  %59 = load ptr, ptr @stderr, align 8, !tbaa !5
  %60 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef nonnull @.str.4) #9
  br label %268

61:                                               ; preds = %46
  %62 = fsub double %2, %1
  %63 = fdiv double %62, %3
  %64 = tail call i64 @lround(double noundef %63) #10
  %.tr = trunc i64 %64 to i32
  %65 = shl i32 %.tr, 2
  %66 = tail call ptr @MatNd_create(i32 noundef 3, i32 noundef %65)
  tail call void @_ZNK3Rcs16ViaPointSequence17computeTrajectoryEP6_MatNdddd(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef %66, double noundef %1, double noundef %2, double noundef %3)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #10
  call void @_ZL17getUniqueFileNamePc(ptr noundef nonnull %6)
  call void @MatNd_transposeSelf(ptr noundef %66)
  %67 = call zeroext i1 @MatNd_toFile(ptr noundef %66, ptr noundef nonnull %6)
  %68 = getelementptr inbounds i8, ptr %0, i64 32
  %69 = load ptr, ptr %68, align 8, !tbaa !11
  %70 = getelementptr inbounds i8, ptr %69, i64 8
  %71 = load i32, ptr %70, align 8, !tbaa !23
  %72 = call ptr @MatNd_create(i32 noundef %71, i32 noundef 2)
  %73 = load ptr, ptr %68, align 8, !tbaa !11
  %74 = getelementptr inbounds i8, ptr %73, i64 8
  %75 = load i32, ptr %74, align 8, !tbaa !23
  %76 = call ptr @MatNd_create(i32 noundef %75, i32 noundef 2)
  %77 = load ptr, ptr %68, align 8, !tbaa !11
  %78 = getelementptr inbounds i8, ptr %77, i64 8
  %79 = load i32, ptr %78, align 8, !tbaa !23
  %80 = call ptr @MatNd_create(i32 noundef %79, i32 noundef 2)
  call void @MatNd_reshape(ptr noundef %72, i32 noundef 0, i32 noundef 2)
  call void @MatNd_reshape(ptr noundef %76, i32 noundef 0, i32 noundef 2)
  call void @MatNd_reshape(ptr noundef %80, i32 noundef 0, i32 noundef 2)
  %81 = getelementptr inbounds i8, ptr %0, i64 8
  %82 = load ptr, ptr %81, align 8, !tbaa !25
  %83 = getelementptr inbounds i8, ptr %82, i64 8
  %84 = load i32, ptr %83, align 8, !tbaa !23
  %.not129 = icmp eq i32 %84, 0
  br i1 %.not129, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %61
  %85 = getelementptr inbounds i8, ptr %72, i64 8
  %86 = getelementptr inbounds i8, ptr %76, i64 8
  %87 = getelementptr inbounds i8, ptr %80, i64 8
  br label %94

._crit_edge:                                      ; preds = %128, %61
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #10
  call void @_ZL17getUniqueFileNamePc(ptr noundef nonnull %7)
  call void @_ZL17getUniqueFileNamePc(ptr noundef nonnull %8)
  call void @_ZL17getUniqueFileNamePc(ptr noundef nonnull %9)
  %88 = call zeroext i1 @MatNd_toFile(ptr noundef %72, ptr noundef nonnull %7)
  %89 = call zeroext i1 @MatNd_toFile(ptr noundef %76, ptr noundef nonnull %8)
  %90 = call zeroext i1 @MatNd_toFile(ptr noundef %80, ptr noundef nonnull %9)
  call void @MatNd_destroy(ptr noundef %72)
  call void @MatNd_destroy(ptr noundef %76)
  call void @MatNd_destroy(ptr noundef %80)
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %10) #10
  %91 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %10, ptr noundef nonnull dereferenceable(1) @.str.50, ptr noundef nonnull %6, ptr noundef nonnull %7) #10
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %11) #10
  %92 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %11, ptr noundef nonnull dereferenceable(1) @.str.51, ptr noundef nonnull %6, ptr noundef nonnull %8) #10
  %93 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not = icmp eq ptr %93, null
  br i1 %.not, label %136, label %135

94:                                               ; preds = %.lr.ph, %128
  %95 = phi ptr [ %82, %.lr.ph ], [ %130, %128 ]
  %.091128 = phi i64 [ 0, %.lr.ph ], [ %129, %128 ]
  %96 = trunc nuw i64 %.091128 to i32
  %97 = call double @MatNd_get(ptr noundef nonnull %95, i32 noundef %96, i32 noundef 4)
  %98 = call i64 @lround(double noundef %97) #10
  %99 = trunc i64 %98 to i32
  %100 = load ptr, ptr %81, align 8, !tbaa !25
  %101 = call double @MatNd_get(ptr noundef %100, i32 noundef %96, i32 noundef 0)
  %102 = call zeroext i1 @Math_isBitSet(i32 noundef %99, i32 noundef 0)
  br i1 %102, label %103, label %110

103:                                              ; preds = %94
  %104 = load i32, ptr %85, align 8, !tbaa !23
  %105 = add i32 %104, 1
  store i32 %105, ptr %85, align 8, !tbaa !23
  call void @MatNd_set(ptr noundef %72, i32 noundef %104, i32 noundef 0, double noundef %101)
  %106 = load i32, ptr %85, align 8, !tbaa !23
  %107 = add i32 %106, -1
  %108 = load ptr, ptr %81, align 8, !tbaa !25
  %109 = call double @MatNd_get(ptr noundef %108, i32 noundef %96, i32 noundef 1)
  call void @MatNd_set(ptr noundef %72, i32 noundef %107, i32 noundef 1, double noundef %109)
  br label %110

110:                                              ; preds = %103, %94
  %111 = call zeroext i1 @Math_isBitSet(i32 noundef %99, i32 noundef 1)
  br i1 %111, label %112, label %119

112:                                              ; preds = %110
  %113 = load i32, ptr %86, align 8, !tbaa !23
  %114 = add i32 %113, 1
  store i32 %114, ptr %86, align 8, !tbaa !23
  call void @MatNd_set(ptr noundef %76, i32 noundef %113, i32 noundef 0, double noundef %101)
  %115 = load i32, ptr %86, align 8, !tbaa !23
  %116 = add i32 %115, -1
  %117 = load ptr, ptr %81, align 8, !tbaa !25
  %118 = call double @MatNd_get(ptr noundef %117, i32 noundef %96, i32 noundef 2)
  call void @MatNd_set(ptr noundef %76, i32 noundef %116, i32 noundef 1, double noundef %118)
  br label %119

119:                                              ; preds = %112, %110
  %120 = call zeroext i1 @Math_isBitSet(i32 noundef %99, i32 noundef 2)
  br i1 %120, label %121, label %128

121:                                              ; preds = %119
  %122 = load i32, ptr %87, align 8, !tbaa !23
  %123 = add i32 %122, 1
  store i32 %123, ptr %87, align 8, !tbaa !23
  call void @MatNd_set(ptr noundef %80, i32 noundef %122, i32 noundef 0, double noundef %101)
  %124 = load i32, ptr %87, align 8, !tbaa !23
  %125 = add i32 %124, -1
  %126 = load ptr, ptr %81, align 8, !tbaa !25
  %127 = call double @MatNd_get(ptr noundef %126, i32 noundef %96, i32 noundef 3)
  call void @MatNd_set(ptr noundef %80, i32 noundef %125, i32 noundef 1, double noundef %127)
  br label %128

128:                                              ; preds = %121, %119
  %129 = add nuw nsw i64 %.091128, 1
  %130 = load ptr, ptr %81, align 8, !tbaa !25
  %131 = getelementptr inbounds i8, ptr %130, i64 8
  %132 = load i32, ptr %131, align 8, !tbaa !23
  %133 = zext i32 %132 to i64
  %134 = icmp ult i64 %129, %133
  br i1 %134, label %94, label %._crit_edge, !llvm.loop !26

135:                                              ; preds = %._crit_edge
  call void (i32, ptr, ptr, i32, ptr, ...) %93(i32 noundef 0, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__._ZNK3Rcs16ViaPointSequence7gnuplotEdddi, i32 noundef 1211, ptr noundef nonnull @.str.52, ptr noundef nonnull %11)
  br label %136

136:                                              ; preds = %135, %._crit_edge
  %137 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %138 = icmp sgt i32 %137, -1
  br i1 %138, label %139, label %146

139:                                              ; preds = %136
  %140 = load ptr, ptr @stderr, align 8, !tbaa !5
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %140, ptr noundef nonnull @.str.42, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__._ZNK3Rcs16ViaPointSequence7gnuplotEdddi, i32 noundef 1211) #9
  %142 = load ptr, ptr @stderr, align 8, !tbaa !5
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef nonnull @.str.52, ptr noundef nonnull %11) #9
  %144 = load ptr, ptr @stderr, align 8, !tbaa !5
  %145 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %144, ptr noundef nonnull @.str.4) #9
  br label %146

146:                                              ; preds = %139, %136
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %12) #10
  %147 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %12, ptr noundef nonnull dereferenceable(1) @.str.53, ptr noundef nonnull %6, ptr noundef nonnull %9) #10
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %13) #10
  %148 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %13, ptr noundef nonnull dereferenceable(1) @.str.54, ptr noundef nonnull %6, ptr noundef nonnull %6, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %16) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #10
  call void @_ZL17getUniqueFileNamePc(ptr noundef nonnull %14)
  call void @_ZL17getUniqueFileNamePc(ptr noundef nonnull %15)
  call void @_ZL17getUniqueFileNamePc(ptr noundef nonnull %16)
  call void @_ZL17getUniqueFileNamePc(ptr noundef nonnull %17)
  %149 = call noalias ptr @fopen(ptr noundef nonnull %14, ptr noundef nonnull @.str.55)
  %.not107 = icmp eq ptr %149, null
  br i1 %.not107, label %150, label %153

150:                                              ; preds = %146
  %151 = load ptr, ptr @stderr, align 8, !tbaa !5
  %152 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %151, ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__._ZNK3Rcs16ViaPointSequence7gnuplotEdddi, i32 noundef 1237, ptr noundef nonnull @.str.56) #9
  call void @print_trace()
  call void @abort() #11
  unreachable

153:                                              ; preds = %146
  %154 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %149, ptr noundef nonnull @.str.52, ptr noundef nonnull %13) #10
  %155 = call i32 @fflush(ptr noundef nonnull %149)
  %156 = call i32 @fclose(ptr noundef nonnull %149)
  %157 = call noalias ptr @fopen(ptr noundef nonnull %15, ptr noundef nonnull @.str.55)
  %.not108 = icmp eq ptr %157, null
  br i1 %.not108, label %158, label %161

158:                                              ; preds = %153
  %159 = load ptr, ptr @stderr, align 8, !tbaa !5
  %160 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %159, ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__._ZNK3Rcs16ViaPointSequence7gnuplotEdddi, i32 noundef 1243, ptr noundef nonnull @.str.56) #9
  call void @print_trace()
  call void @abort() #11
  unreachable

161:                                              ; preds = %153
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %157, ptr noundef nonnull @.str.52, ptr noundef nonnull %10) #10
  %163 = call i32 @fflush(ptr noundef nonnull %157)
  %164 = call i32 @fclose(ptr noundef nonnull %157)
  %165 = call noalias ptr @fopen(ptr noundef nonnull %16, ptr noundef nonnull @.str.55)
  %.not109 = icmp eq ptr %165, null
  br i1 %.not109, label %166, label %169

166:                                              ; preds = %161
  %167 = load ptr, ptr @stderr, align 8, !tbaa !5
  %168 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %167, ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__._ZNK3Rcs16ViaPointSequence7gnuplotEdddi, i32 noundef 1249, ptr noundef nonnull @.str.56) #9
  call void @print_trace()
  call void @abort() #11
  unreachable

169:                                              ; preds = %161
  %170 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %165, ptr noundef nonnull @.str.52, ptr noundef nonnull %11) #10
  %171 = call i32 @fflush(ptr noundef nonnull %165)
  %172 = call i32 @fclose(ptr noundef nonnull %165)
  %173 = call noalias ptr @fopen(ptr noundef nonnull %17, ptr noundef nonnull @.str.55)
  %.not110 = icmp eq ptr %173, null
  br i1 %.not110, label %174, label %177

174:                                              ; preds = %169
  %175 = load ptr, ptr @stderr, align 8, !tbaa !5
  %176 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %175, ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__._ZNK3Rcs16ViaPointSequence7gnuplotEdddi, i32 noundef 1255, ptr noundef nonnull @.str.56) #9
  call void @print_trace()
  call void @abort() #11
  unreachable

177:                                              ; preds = %169
  %178 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %173, ptr noundef nonnull @.str.52, ptr noundef nonnull %12) #10
  %179 = call i32 @fflush(ptr noundef nonnull %173)
  %180 = call i32 @fclose(ptr noundef nonnull %173)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull @.str.57, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %181 unwind label %189

181:                                              ; preds = %177
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #10
  %182 = icmp eq i32 %4, 7
  br i1 %182, label %183, label %199

183:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %21) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %22) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull %14, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %184 unwind label %191

184:                                              ; preds = %183
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %20, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %185 unwind label %193

185:                                              ; preds = %184
  %186 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  %187 = invoke i32 @system(ptr noundef %186)
          to label %188 unwind label %195

188:                                              ; preds = %185
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #10
  br label %252

189:                                              ; preds = %177
  %190 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #10
  br label %270

191:                                              ; preds = %183
  %192 = landingpad { ptr, i32 }
          cleanup
  br label %198

193:                                              ; preds = %184
  %194 = landingpad { ptr, i32 }
          cleanup
  br label %197

195:                                              ; preds = %185
  %196 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  br label %197

197:                                              ; preds = %195, %193
  %.pn119 = phi { ptr, i32 } [ %196, %195 ], [ %194, %193 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #10
  br label %198

198:                                              ; preds = %197, %191
  %.pn119.pn = phi { ptr, i32 } [ %.pn119, %197 ], [ %192, %191 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #10
  br label %269

199:                                              ; preds = %181
  %200 = invoke zeroext i1 @Math_isBitSet(i32 noundef %4, i32 noundef 0)
          to label %201 unwind label %208

201:                                              ; preds = %199
  br i1 %200, label %202, label %218

202:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %23) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %24) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %25) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull %15, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %203 unwind label %210

203:                                              ; preds = %202
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %23, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %204 unwind label %212

204:                                              ; preds = %203
  %205 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %23) #10
  %206 = invoke i32 @system(ptr noundef %205)
          to label %207 unwind label %214

207:                                              ; preds = %204
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #10
  br label %218

208:                                              ; preds = %256, %235, %218, %199
  %209 = landingpad { ptr, i32 }
          cleanup
  br label %269

210:                                              ; preds = %202
  %211 = landingpad { ptr, i32 }
          cleanup
  br label %217

212:                                              ; preds = %203
  %213 = landingpad { ptr, i32 }
          cleanup
  br label %216

214:                                              ; preds = %204
  %215 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #10
  br label %216

216:                                              ; preds = %214, %212
  %.pn = phi { ptr, i32 } [ %215, %214 ], [ %213, %212 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #10
  br label %217

217:                                              ; preds = %216, %210
  %.pn.pn = phi { ptr, i32 } [ %.pn, %216 ], [ %211, %210 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #10
  br label %269

218:                                              ; preds = %207, %201
  %.0 = phi i32 [ %206, %207 ], [ -1, %201 ]
  %219 = invoke zeroext i1 @Math_isBitSet(i32 noundef %4, i32 noundef 1)
          to label %220 unwind label %208

220:                                              ; preds = %218
  br i1 %219, label %221, label %235

221:                                              ; preds = %220
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %27) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %28) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull %16, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %222 unwind label %227

222:                                              ; preds = %221
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %26, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %223 unwind label %229

223:                                              ; preds = %222
  %224 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %26) #10
  %225 = invoke i32 @system(ptr noundef %224)
          to label %226 unwind label %231

226:                                              ; preds = %223
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %28) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #10
  br label %235

227:                                              ; preds = %221
  %228 = landingpad { ptr, i32 }
          cleanup
  br label %234

229:                                              ; preds = %222
  %230 = landingpad { ptr, i32 }
          cleanup
  br label %233

231:                                              ; preds = %223
  %232 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #10
  br label %233

233:                                              ; preds = %231, %229
  %.pn113 = phi { ptr, i32 } [ %232, %231 ], [ %230, %229 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #10
  br label %234

234:                                              ; preds = %233, %227
  %.pn113.pn = phi { ptr, i32 } [ %.pn113, %233 ], [ %228, %227 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %28) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #10
  br label %269

235:                                              ; preds = %226, %220
  %.1 = phi i32 [ %225, %226 ], [ %.0, %220 ]
  %236 = invoke zeroext i1 @Math_isBitSet(i32 noundef %4, i32 noundef 2)
          to label %237 unwind label %208

237:                                              ; preds = %235
  br i1 %236, label %238, label %252

238:                                              ; preds = %237
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %29) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %30) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %31) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull %17, ptr noundef nonnull align 1 dereferenceable(1) %31)
          to label %239 unwind label %244

239:                                              ; preds = %238
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %29, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %30)
          to label %240 unwind label %246

240:                                              ; preds = %239
  %241 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %29) #10
  %242 = invoke i32 @system(ptr noundef %241)
          to label %243 unwind label %248

243:                                              ; preds = %240
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %31) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %30) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %29) #10
  br label %252

244:                                              ; preds = %238
  %245 = landingpad { ptr, i32 }
          cleanup
  br label %251

246:                                              ; preds = %239
  %247 = landingpad { ptr, i32 }
          cleanup
  br label %250

248:                                              ; preds = %240
  %249 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #10
  br label %250

250:                                              ; preds = %248, %246
  %.pn116 = phi { ptr, i32 } [ %249, %248 ], [ %247, %246 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #10
  br label %251

251:                                              ; preds = %250, %244
  %.pn116.pn = phi { ptr, i32 } [ %.pn116, %250 ], [ %245, %244 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %31) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %30) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %29) #10
  br label %269

252:                                              ; preds = %237, %243, %188
  %.2 = phi i32 [ %187, %188 ], [ %242, %243 ], [ %.1, %237 ]
  %253 = icmp eq i32 %.2, -1
  br i1 %253, label %254, label %267

254:                                              ; preds = %252
  %255 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not122 = icmp eq ptr %255, null
  br i1 %.not122, label %257, label %256

256:                                              ; preds = %254
  invoke void (i32, ptr, ptr, i32, ptr, ...) %255(i32 noundef 1, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__._ZNK3Rcs16ViaPointSequence7gnuplotEdddi, i32 noundef 1292, ptr noundef nonnull @.str.58)
          to label %257 unwind label %208

257:                                              ; preds = %256, %254
  %258 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %259 = icmp sgt i32 %258, 0
  br i1 %259, label %260, label %267

260:                                              ; preds = %257
  %261 = load ptr, ptr @stderr, align 8, !tbaa !5
  %262 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %261, ptr noundef nonnull @.str.42, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__._ZNK3Rcs16ViaPointSequence7gnuplotEdddi, i32 noundef 1292) #9
  %263 = load ptr, ptr @stderr, align 8, !tbaa !5
  %264 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %263, ptr noundef nonnull @.str.58) #9
  %265 = load ptr, ptr @stderr, align 8, !tbaa !5
  %266 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %265, ptr noundef nonnull @.str.4) #9
  br label %267

267:                                              ; preds = %257, %260, %252
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #10
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %13) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #10
  br label %268

268:                                              ; preds = %54, %51, %39, %36, %267
  ret void

269:                                              ; preds = %251, %234, %217, %208, %198
  %.pn123 = phi { ptr, i32 } [ %209, %208 ], [ %.pn119.pn, %198 ], [ %.pn116.pn, %251 ], [ %.pn113.pn, %234 ], [ %.pn.pn, %217 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #10
  br label %270

270:                                              ; preds = %269, %189
  %.pn123.pn = phi { ptr, i32 } [ %.pn123, %269 ], [ %190, %189 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #10
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %13) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #10
  resume { ptr, i32 } %.pn123.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3Rcs16ViaPointSequence17computeTrajectoryEP6_MatNdddd(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef, double noundef, double noundef, double noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZL17getUniqueFileNamePc(ptr noundef) local_unnamed_addr #6

declare void @MatNd_transposeSelf(ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: nofree
declare noundef i32 @system(ptr nocapture noundef readonly) local_unnamed_addr #8

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_OS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #7 align 2

attributes #0 = { mustprogress 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 = { 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 #4 = { 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 #5 = { 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 #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 = { 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 #8 = { nofree "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 #9 = { cold nounwind }
attributes #10 = { nounwind }
attributes #11 = { 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 = !{!"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, !6, i64 32}
!12 = !{!"_ZTSN3Rcs16ViaPointSequenceE", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !13, i64 48, !14, i64 52, !15, i64 56, !19, i64 80}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN3Rcs16ViaPointSequence12ViaPointTypeE", !7, i64 0}
!15 = !{!"_ZTSSt6vectorIiSaIiEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSSt6vectorIdSaIdEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!24, !10, i64 8}
!24 = !{!"_ZTS6_MatNd", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !13, i64 20}
!25 = !{!12, !6, i64 8}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass