; LLVM IR from yuikns/panther :: ann/test/ann_test.ll (Z11generatePtsRPPdi6PtType7ANNboolS0_i)

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"struct.std::_Setw" = type { i32 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@dim = external dso_local global i32, align 4
@n_color = external dso_local global i32, align 4
@max_dim = external dso_local global i32, align 4
@distr = external dso_local global i32, align 4
@corr_coef = external dso_local global double, align 8
@std_dev = external dso_local global double, align 8
@std_dev_lo = external dso_local global double, align 8
@std_dev_hi = external dso_local global double, align 8
@stats = external dso_local global i32, align 4
@annIdum = external global i32, align 4
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZL11distr_table = external hidden constant [9 x [500 x i8]], align 16
@.str.70 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5ErrorPKc6ANNerr(ptr noundef, i32 noundef) #0

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10printPointPdi(ptr noundef, i32 noundef) #0

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z11generatePtsRPPdi6PtType7ANNboolS0_i(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5) #0 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"struct.std::_Setw", align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !11
  store i32 %3, ptr %10, align 4, !tbaa !13
  store ptr %4, ptr %11, align 8, !tbaa !5
  store i32 %5, ptr %12, align 4, !tbaa !9
  %15 = load ptr, ptr %7, align 8, !tbaa !5
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %18, label %20

18:                                               ; preds = %6
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z13annDeallocPtsRPPd(ptr noundef nonnull align 8 dereferenceable(8) %19)
  br label %20

20:                                               ; preds = %18, %6
  %21 = load i32, ptr %8, align 4, !tbaa !9
  %22 = load i32, ptr @dim, align 4, !tbaa !9
  %23 = call noundef ptr @_Z11annAllocPtsii(i32 noundef %21, i32 noundef %22)
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %23, ptr %24, align 8, !tbaa !5
  %25 = load i32, ptr @distr, align 4, !tbaa !15
  switch i32 %25, label %90 [
    i32 0, label %26
    i32 1, label %31
    i32 2, label %37
    i32 3, label %42
    i32 4, label %48
    i32 5, label %54
    i32 6, label %62
    i32 7, label %71
    i32 8, label %82
  ]

26:                                               ; preds = %20
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  %29 = load i32, ptr %8, align 4, !tbaa !9
  %30 = load i32, ptr @dim, align 4, !tbaa !9
  call void @_Z13annUniformPtsPPdii(ptr noundef %28, i32 noundef %29, i32 noundef %30)
  br label %91

31:                                               ; preds = %20
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = load ptr, ptr %32, align 8, !tbaa !5
  %34 = load i32, ptr %8, align 4, !tbaa !9
  %35 = load i32, ptr @dim, align 4, !tbaa !9
  %36 = load double, ptr @std_dev, align 8, !tbaa !17
  call void @_Z11annGaussPtsPPdiid(ptr noundef %33, i32 noundef %34, i32 noundef %35, double noundef %36)
  br label %91

37:                                               ; preds = %20
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  %40 = load i32, ptr %8, align 4, !tbaa !9
  %41 = load i32, ptr @dim, align 4, !tbaa !9
  call void @_Z13annLaplacePtsPPdii(ptr noundef %39, i32 noundef %40, i32 noundef %41)
  br label %91

42:                                               ; preds = %20
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  %45 = load i32, ptr %8, align 4, !tbaa !9
  %46 = load i32, ptr @dim, align 4, !tbaa !9
  %47 = load double, ptr @corr_coef, align 8, !tbaa !17
  call void @_Z13annCoGaussPtsPPdiid(ptr noundef %44, i32 noundef %45, i32 noundef %46, double noundef %47)
  br label %91

48:                                               ; preds = %20
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = load ptr, ptr %49, align 8, !tbaa !5
  %51 = load i32, ptr %8, align 4, !tbaa !9
  %52 = load i32, ptr @dim, align 4, !tbaa !9
  %53 = load double, ptr @corr_coef, align 8, !tbaa !17
  call void @_Z15annCoLaplacePtsPPdiid(ptr noundef %50, i32 noundef %51, i32 noundef %52, double noundef %53)
  br label %91

54:                                               ; preds = %20
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = load i32, ptr %8, align 4, !tbaa !9
  %58 = load i32, ptr @dim, align 4, !tbaa !9
  %59 = load i32, ptr @n_color, align 4, !tbaa !9
  %60 = load i32, ptr %10, align 4, !tbaa !13
  %61 = load double, ptr @std_dev, align 8, !tbaa !17
  call void @_Z15annClusGaussPtsPPdiii7ANNboold(ptr noundef %56, i32 noundef %57, i32 noundef %58, i32 noundef %59, i32 noundef %60, double noundef %61)
  br label %91

62:                                               ; preds = %20
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = load ptr, ptr %63, align 8, !tbaa !5
  %65 = load i32, ptr %8, align 4, !tbaa !9
  %66 = load i32, ptr @dim, align 4, !tbaa !9
  %67 = load i32, ptr @n_color, align 4, !tbaa !9
  %68 = load i32, ptr %10, align 4, !tbaa !13
  %69 = load double, ptr @std_dev, align 8, !tbaa !17
  %70 = load i32, ptr @max_dim, align 4, !tbaa !9
  call void @_Z16annClusOrthFlatsPPdiii7ANNbooldi(ptr noundef %64, i32 noundef %65, i32 noundef %66, i32 noundef %67, i32 noundef %68, double noundef %69, i32 noundef %70)
  br label %91

71:                                               ; preds = %20
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %74 = load i32, ptr %8, align 4, !tbaa !9
  %75 = load i32, ptr @dim, align 4, !tbaa !9
  %76 = load i32, ptr @n_color, align 4, !tbaa !9
  %77 = load i32, ptr %10, align 4, !tbaa !13
  %78 = load double, ptr @std_dev, align 8, !tbaa !17
  %79 = load double, ptr @std_dev_lo, align 8, !tbaa !17
  %80 = load double, ptr @std_dev_hi, align 8, !tbaa !17
  %81 = load i32, ptr @max_dim, align 4, !tbaa !9
  call void @_Z17annClusEllipsoidsPPdiii7ANNbooldddi(ptr noundef %73, i32 noundef %74, i32 noundef %75, i32 noundef %76, i32 noundef %77, double noundef %78, double noundef %79, double noundef %80, i32 noundef %81)
  br label %91

82:                                               ; preds = %20
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  %85 = load i32, ptr %8, align 4, !tbaa !9
  %86 = load i32, ptr @dim, align 4, !tbaa !9
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = load i32, ptr %12, align 4, !tbaa !9
  %89 = load double, ptr @std_dev, align 8, !tbaa !17
  call void @_Z10annPlantedPPdiiS0_id(ptr noundef %84, i32 noundef %85, i32 noundef %86, ptr noundef %87, i32 noundef %88, double noundef %89)
  br label %91

90:                                               ; preds = %20
  call void @_Z5ErrorPKc6ANNerr(ptr noundef @.str.113, i32 noundef 1)
  br label %91

91:                                               ; preds = %90, %82, %71, %62, %54, %48, %42, %37, %31, %26
  %92 = load i32, ptr @stats, align 4, !tbaa !19
  %93 = icmp sgt i32 %92, 0
  br i1 %93, label %94, label %196

94:                                               ; preds = %91
  %95 = load i32, ptr %9, align 4, !tbaa !11
  %96 = icmp eq i32 %95, 0
  br i1 %96, label %97, label %99

97:                                               ; preds = %94
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.114)
  br label %101

99:                                               ; preds = %94
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.115)
  br label %101

101:                                              ; preds = %99, %97
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.116)
  %103 = load i32, ptr %8, align 4, !tbaa !9
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %102, i32 noundef %103)
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %104, ptr noundef @.str.12)
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.70)
  %107 = load i32, ptr @dim, align 4, !tbaa !9
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %106, i32 noundef %107)
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %108, ptr noundef @.str.12)
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.117)
  %111 = load i32, ptr @distr, align 4, !tbaa !15
  %112 = zext i32 %111 to i64
  %113 = getelementptr inbounds [9 x [500 x i8]], ptr @_ZL11distr_table, i64 0, i64 %112
  %114 = getelementptr inbounds [500 x i8], ptr %113, i64 0, i64 0
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %110, ptr noundef %114)
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %115, ptr noundef @.str.12)
  %117 = load i32, ptr @annIdum, align 4, !tbaa !9
  %118 = icmp slt i32 %117, 0
  br i1 %118, label %119, label %124

119:                                              ; preds = %101
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.118)
  %121 = load i32, ptr @annIdum, align 4, !tbaa !9
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %120, i32 noundef %121)
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %122, ptr noundef @.str.12)
  br label %124

124:                                              ; preds = %119, %101
  %125 = load i32, ptr @distr, align 4, !tbaa !15
  %126 = icmp eq i32 %125, 1
  br i1 %126, label %133, label %127

127:                                              ; preds = %124
  %128 = load i32, ptr @distr, align 4, !tbaa !15
  %129 = icmp eq i32 %128, 5
  br i1 %129, label %133, label %130

130:                                              ; preds = %127
  %131 = load i32, ptr @distr, align 4, !tbaa !15
  %132 = icmp eq i32 %131, 6
  br i1 %132, label %133, label %138

133:                                              ; preds = %130, %127, %124
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.119)
  %135 = load double, ptr @std_dev, align 8, !tbaa !17
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %134, double noundef %135)
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %136, ptr noundef @.str.12)
  br label %138

138:                                              ; preds = %133, %130
  %139 = load i32, ptr @distr, align 4, !tbaa !15
  %140 = icmp eq i32 %139, 7
  br i1 %140, label %141, label %154

141:                                              ; preds = %138
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.119)
  %143 = load double, ptr @std_dev, align 8, !tbaa !17
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %142, double noundef %143)
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %144, ptr noundef @.str.120)
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.121)
  %147 = load double, ptr @std_dev_lo, align 8, !tbaa !17
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %146, double noundef %147)
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %148, ptr noundef @.str.12)
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.122)
  %151 = load double, ptr @std_dev_hi, align 8, !tbaa !17
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %150, double noundef %151)
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %152, ptr noundef @.str.12)
  br label %154

154:                                              ; preds = %141, %138
  %155 = load i32, ptr @distr, align 4, !tbaa !15
  %156 = icmp eq i32 %155, 3
  br i1 %156, label %160, label %157

157:                                              ; preds = %154
  %158 = load i32, ptr @distr, align 4, !tbaa !15
  %159 = icmp eq i32 %158, 4
  br i1 %159, label %160, label %165

160:                                              ; preds = %157, %154
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.123)
  %162 = load double, ptr @corr_coef, align 8, !tbaa !17
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %161, double noundef %162)
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %163, ptr noundef @.str.12)
  br label %165

165:                                              ; preds = %160, %157
  %166 = load i32, ptr @distr, align 4, !tbaa !15
  %167 = icmp eq i32 %166, 5
  br i1 %167, label %174, label %168

168:                                              ; preds = %165
  %169 = load i32, ptr @distr, align 4, !tbaa !15
  %170 = icmp eq i32 %169, 6
  br i1 %170, label %174, label %171

171:                                              ; preds = %168
  %172 = load i32, ptr @distr, align 4, !tbaa !15
  %173 = icmp eq i32 %172, 7
  br i1 %173, label %174, label %184

174:                                              ; preds = %171, %168, %165
  %175 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.124)
  %176 = load i32, ptr @n_color, align 4, !tbaa !9
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %175, i32 noundef %176)
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %177, ptr noundef @.str.12)
  %179 = load i32, ptr %10, align 4, !tbaa !13
  %180 = icmp ne i32 %179, 0
  br i1 %180, label %181, label %183

181:                                              ; preds = %174
  %182 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.125)
  br label %183

183:                                              ; preds = %181, %174
  br label %184

184:                                              ; preds = %183, %171
  %185 = load i32, ptr @distr, align 4, !tbaa !15
  %186 = icmp eq i32 %185, 6
  br i1 %186, label %190, label %187

187:                                              ; preds = %184
  %188 = load i32, ptr @distr, align 4, !tbaa !15
  %189 = icmp eq i32 %188, 7
  br i1 %189, label %190, label %195

190:                                              ; preds = %187, %184
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.126)
  %192 = load i32, ptr @max_dim, align 4, !tbaa !9
  %193 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %191, i32 noundef %192)
  %194 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %193, ptr noundef @.str.12)
  br label %195

195:                                              ; preds = %190, %187
  br label %196

196:                                              ; preds = %195, %91
  %197 = load i32, ptr %9, align 4, !tbaa !11
  %198 = icmp eq i32 %197, 0
  br i1 %198, label %199, label %202

199:                                              ; preds = %196
  %200 = load i32, ptr @stats, align 4, !tbaa !19
  %201 = icmp sge i32 %200, 5
  br i1 %201, label %208, label %202

202:                                              ; preds = %199, %196
  %203 = load i32, ptr %9, align 4, !tbaa !11
  %204 = icmp eq i32 %203, 1
  br i1 %204, label %205, label %244

205:                                              ; preds = %202
  %206 = load i32, ptr @stats, align 4, !tbaa !19
  %207 = icmp sge i32 %206, 4
  br i1 %207, label %208, label %244

208:                                              ; preds = %205, %199
  %209 = load i32, ptr %9, align 4, !tbaa !11
  %210 = icmp eq i32 %209, 0
  br i1 %210, label %211, label %213

211:                                              ; preds = %208
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.127)
  br label %215

213:                                              ; preds = %208
  %214 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.128)
  br label %215

215:                                              ; preds = %213, %211
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %216

216:                                              ; preds = %239, %215
  %217 = load i32, ptr %13, align 4, !tbaa !9
  %218 = load i32, ptr %8, align 4, !tbaa !9
  %219 = icmp slt i32 %217, %218
  br i1 %219, label %221, label %220

220:                                              ; preds = %216
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %242

221:                                              ; preds = %216
  %222 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.10)
  %223 = call i32 @_ZSt4setwi(i32 noundef 4)
  %224 = getelementptr inbounds %"struct.std::_Setw", ptr %14, i32 0, i32 0
  store i32 %223, ptr %224, align 4
  %225 = getelementptr inbounds %"struct.std::_Setw", ptr %14, i32 0, i32 0
  %226 = load i32, ptr %225, align 4
  %227 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw(ptr noundef nonnull align 8 dereferenceable(8) %222, i32 %226)
  %228 = load i32, ptr %13, align 4, !tbaa !9
  %229 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %227, i32 noundef %228)
  %230 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %229, ptr noundef @.str.109)
  %231 = load ptr, ptr %7, align 8, !tbaa !5
  %232 = load ptr, ptr %231, align 8, !tbaa !5
  %233 = load i32, ptr %13, align 4, !tbaa !9
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds ptr, ptr %232, i64 %234
  %236 = load ptr, ptr %235, align 8, !tbaa !5
  %237 = load i32, ptr @dim, align 4, !tbaa !9
  call void @_Z10printPointPdi(ptr noundef %236, i32 noundef %237)
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.12)
  br label %239

239:                                              ; preds = %221
  %240 = load i32, ptr %13, align 4, !tbaa !9
  %241 = add nsw i32 %240, 1
  store i32 %241, ptr %13, align 4, !tbaa !9
  br label %216, !llvm.loop !21

242:                                              ; preds = %220
  %243 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.75)
  br label %244

244:                                              ; preds = %242, %205, %202
  %245 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.76)
  ret void
}

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw(ptr noundef nonnull align 8 dereferenceable(8), i32) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt4setwi(i32 noundef) #4

declare void @_Z13annDeallocPtsRPPd(ptr noundef nonnull align 8 dereferenceable(8)) #3

declare noundef ptr @_Z11annAllocPtsii(i32 noundef, i32 noundef) #3

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

declare void @_Z11annGaussPtsPPdiid(ptr noundef, i32 noundef, i32 noundef, double noundef) #3

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

declare void @_Z13annCoGaussPtsPPdiid(ptr noundef, i32 noundef, i32 noundef, double noundef) #3

declare void @_Z15annCoLaplacePtsPPdiid(ptr noundef, i32 noundef, i32 noundef, double noundef) #3

declare void @_Z15annClusGaussPtsPPdiii7ANNboold(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, double noundef) #3

declare void @_Z16annClusOrthFlatsPPdiii7ANNbooldi(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, double noundef, i32 noundef) #3

declare void @_Z17annClusEllipsoidsPPdiii7ANNbooldddi(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, double noundef, double noundef, double noundef, i32 noundef) #3

declare void @_Z10annPlantedPPdiiS0_id(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, double noundef) #3

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint 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 #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS6PtType", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTS7ANNbool", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"_ZTS7Distrib", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"_ZTS7StatLev", !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@dim = external dso_local local_unnamed_addr global i32, align 4
@n_color = external dso_local local_unnamed_addr global i32, align 4
@max_dim = external dso_local local_unnamed_addr global i32, align 4
@distr = external dso_local local_unnamed_addr global i32, align 4
@corr_coef = external dso_local local_unnamed_addr global double, align 8
@std_dev = external dso_local local_unnamed_addr global double, align 8
@std_dev_lo = external dso_local local_unnamed_addr global double, align 8
@std_dev_hi = external dso_local local_unnamed_addr global double, align 8
@stats = external dso_local local_unnamed_addr global i32, align 4
@annIdum = external local_unnamed_addr global i32, align 4
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZL11distr_table = external hidden constant [9 x [500 x i8]], align 16
@.str.70 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5ErrorPKc6ANNerr(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10printPointPdi(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z11generatePtsRPPdi6PtType7ANNboolS0_i(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5) local_unnamed_addr #0 {
  %7 = load ptr, ptr %0, align 8, !tbaa !5
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %9, label %8

8:                                                ; preds = %6
  tail call void @_Z13annDeallocPtsRPPd(ptr noundef nonnull align 8 dereferenceable(8) %0)
  br label %9

9:                                                ; preds = %8, %6
  %10 = load i32, ptr @dim, align 4, !tbaa !9
  %11 = tail call noundef ptr @_Z11annAllocPtsii(i32 noundef %1, i32 noundef %10)
  store ptr %11, ptr %0, align 8, !tbaa !5
  %12 = load i32, ptr @distr, align 4, !tbaa !11
  switch i32 %12, label %45 [
    i32 0, label %13
    i32 1, label %15
    i32 2, label %18
    i32 3, label %20
    i32 4, label %23
    i32 5, label %26
    i32 6, label %30
    i32 7, label %35
    i32 8, label %42
  ]

13:                                               ; preds = %9
  %14 = load i32, ptr @dim, align 4, !tbaa !9
  tail call void @_Z13annUniformPtsPPdii(ptr noundef %11, i32 noundef %1, i32 noundef %14)
  br label %46

15:                                               ; preds = %9
  %16 = load i32, ptr @dim, align 4, !tbaa !9
  %17 = load double, ptr @std_dev, align 8, !tbaa !13
  tail call void @_Z11annGaussPtsPPdiid(ptr noundef %11, i32 noundef %1, i32 noundef %16, double noundef %17)
  br label %46

18:                                               ; preds = %9
  %19 = load i32, ptr @dim, align 4, !tbaa !9
  tail call void @_Z13annLaplacePtsPPdii(ptr noundef %11, i32 noundef %1, i32 noundef %19)
  br label %46

20:                                               ; preds = %9
  %21 = load i32, ptr @dim, align 4, !tbaa !9
  %22 = load double, ptr @corr_coef, align 8, !tbaa !13
  tail call void @_Z13annCoGaussPtsPPdiid(ptr noundef %11, i32 noundef %1, i32 noundef %21, double noundef %22)
  br label %46

23:                                               ; preds = %9
  %24 = load i32, ptr @dim, align 4, !tbaa !9
  %25 = load double, ptr @corr_coef, align 8, !tbaa !13
  tail call void @_Z15annCoLaplacePtsPPdiid(ptr noundef %11, i32 noundef %1, i32 noundef %24, double noundef %25)
  br label %46

26:                                               ; preds = %9
  %27 = load i32, ptr @dim, align 4, !tbaa !9
  %28 = load i32, ptr @n_color, align 4, !tbaa !9
  %29 = load double, ptr @std_dev, align 8, !tbaa !13
  tail call void @_Z15annClusGaussPtsPPdiii7ANNboold(ptr noundef %11, i32 noundef %1, i32 noundef %27, i32 noundef %28, i32 noundef %3, double noundef %29)
  br label %46

30:                                               ; preds = %9
  %31 = load i32, ptr @dim, align 4, !tbaa !9
  %32 = load i32, ptr @n_color, align 4, !tbaa !9
  %33 = load double, ptr @std_dev, align 8, !tbaa !13
  %34 = load i32, ptr @max_dim, align 4, !tbaa !9
  tail call void @_Z16annClusOrthFlatsPPdiii7ANNbooldi(ptr noundef %11, i32 noundef %1, i32 noundef %31, i32 noundef %32, i32 noundef %3, double noundef %33, i32 noundef %34)
  br label %46

35:                                               ; preds = %9
  %36 = load i32, ptr @dim, align 4, !tbaa !9
  %37 = load i32, ptr @n_color, align 4, !tbaa !9
  %38 = load double, ptr @std_dev, align 8, !tbaa !13
  %39 = load double, ptr @std_dev_lo, align 8, !tbaa !13
  %40 = load double, ptr @std_dev_hi, align 8, !tbaa !13
  %41 = load i32, ptr @max_dim, align 4, !tbaa !9
  tail call void @_Z17annClusEllipsoidsPPdiii7ANNbooldddi(ptr noundef %11, i32 noundef %1, i32 noundef %36, i32 noundef %37, i32 noundef %3, double noundef %38, double noundef %39, double noundef %40, i32 noundef %41)
  br label %46

42:                                               ; preds = %9
  %43 = load i32, ptr @dim, align 4, !tbaa !9
  %44 = load double, ptr @std_dev, align 8, !tbaa !13
  tail call void @_Z10annPlantedPPdiiS0_id(ptr noundef %11, i32 noundef %1, i32 noundef %43, ptr noundef %4, i32 noundef %5, double noundef %44)
  br label %46

45:                                               ; preds = %9
  tail call void @_Z5ErrorPKc6ANNerr(ptr noundef nonnull @.str.113, i32 noundef 1)
  br label %46

46:                                               ; preds = %45, %42, %35, %30, %26, %23, %20, %18, %15, %13
  %47 = load i32, ptr @stats, align 4, !tbaa !15
  %48 = icmp sgt i32 %47, 0
  br i1 %48, label %49, label %121

49:                                               ; preds = %46
  %50 = icmp eq i32 %2, 0
  %.str.114..str.115 = select i1 %50, ptr @.str.114, ptr @.str.115
  %51 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %.str.114..str.115)
  %52 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.116)
  %53 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %52, i32 noundef %1)
  %54 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull @.str.12)
  %55 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.70)
  %56 = load i32, ptr @dim, align 4, !tbaa !9
  %57 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %55, i32 noundef %56)
  %58 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull @.str.12)
  %59 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.117)
  %60 = load i32, ptr @distr, align 4, !tbaa !11
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds [9 x [500 x i8]], ptr @_ZL11distr_table, i64 0, i64 %61
  %63 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull %62)
  %64 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull @.str.12)
  %65 = load i32, ptr @annIdum, align 4, !tbaa !9
  %66 = icmp slt i32 %65, 0
  br i1 %66, label %67, label %72

67:                                               ; preds = %49
  %68 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.118)
  %69 = load i32, ptr @annIdum, align 4, !tbaa !9
  %70 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %68, i32 noundef %69)
  %71 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef nonnull @.str.12)
  br label %72

72:                                               ; preds = %67, %49
  %73 = load i32, ptr @distr, align 4
  switch i32 %73, label %79 [
    i32 6, label %74
    i32 5, label %74
    i32 1, label %74
  ]

74:                                               ; preds = %72, %72, %72
  %75 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.119)
  %76 = load double, ptr @std_dev, align 8, !tbaa !13
  %77 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %75, double noundef %76)
  %78 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %77, ptr noundef nonnull @.str.12)
  %.pr = load i32, ptr @distr, align 4
  br label %79

79:                                               ; preds = %72, %74
  %80 = phi i32 [ %73, %72 ], [ %.pr, %74 ]
  %81 = icmp eq i32 %80, 7
  br i1 %81, label %82, label %95

82:                                               ; preds = %79
  %83 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.119)
  %84 = load double, ptr @std_dev, align 8, !tbaa !13
  %85 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %83, double noundef %84)
  %86 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef nonnull @.str.120)
  %87 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.121)
  %88 = load double, ptr @std_dev_lo, align 8, !tbaa !13
  %89 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %87, double noundef %88)
  %90 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %89, ptr noundef nonnull @.str.12)
  %91 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.122)
  %92 = load double, ptr @std_dev_hi, align 8, !tbaa !13
  %93 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %91, double noundef %92)
  %94 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef nonnull @.str.12)
  %.pre = load i32, ptr @distr, align 4
  br label %95

95:                                               ; preds = %82, %79
  %96 = phi i32 [ %.pre, %82 ], [ %80, %79 ]
  %97 = add i32 %96, -3
  %or.cond5 = icmp ult i32 %97, 2
  br i1 %or.cond5, label %98, label %103

98:                                               ; preds = %95
  %99 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.123)
  %100 = load double, ptr @corr_coef, align 8, !tbaa !13
  %101 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %99, double noundef %100)
  %102 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %101, ptr noundef nonnull @.str.12)
  %.pre56 = load i32, ptr @distr, align 4
  br label %103

103:                                              ; preds = %95, %98
  %104 = phi i32 [ %96, %95 ], [ %.pre56, %98 ]
  %105 = add i32 %104, -5
  %or.cond9 = icmp ult i32 %105, 3
  br i1 %or.cond9, label %106, label %113

106:                                              ; preds = %103
  %107 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.124)
  %108 = load i32, ptr @n_color, align 4, !tbaa !9
  %109 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %107, i32 noundef %108)
  %110 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef nonnull @.str.12)
  %.not53 = icmp eq i32 %3, 0
  br i1 %.not53, label %113, label %111

111:                                              ; preds = %106
  %112 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.125)
  br label %113

113:                                              ; preds = %106, %111, %103
  %114 = load i32, ptr @distr, align 4
  %115 = and i32 %114, -2
  %or.cond11 = icmp eq i32 %115, 6
  br i1 %or.cond11, label %116, label %121

116:                                              ; preds = %113
  %117 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.126)
  %118 = load i32, ptr @max_dim, align 4, !tbaa !9
  %119 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %117, i32 noundef %118)
  %120 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %119, ptr noundef nonnull @.str.12)
  br label %121

121:                                              ; preds = %116, %113, %46
  %122 = icmp eq i32 %2, 0
  %123 = load i32, ptr @stats, align 4
  %124 = icmp sgt i32 %123, 4
  %or.cond13 = select i1 %122, i1 %124, i1 false
  br i1 %or.cond13, label %128, label %125

125:                                              ; preds = %121
  %126 = icmp eq i32 %2, 1
  %127 = icmp sgt i32 %123, 3
  %or.cond15 = select i1 %126, i1 %127, i1 false
  br i1 %or.cond15, label %128, label %143

128:                                              ; preds = %125, %121
  %.str.128.sink = phi ptr [ @.str.127, %121 ], [ @.str.128, %125 ]
  %129 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %.str.128.sink)
  %130 = icmp sgt i32 %1, 0
  br i1 %130, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %128
  %wide.trip.count = zext nneg i32 %1 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %128
  %131 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.75)
  br label %143

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %132 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.10)
  %133 = tail call i32 @_ZSt4setwi(i32 noundef 4)
  %134 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw(ptr noundef nonnull align 8 dereferenceable(8) %132, i32 %133)
  %135 = trunc nuw nsw i64 %indvars.iv to i32
  %136 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %134, i32 noundef %135)
  %137 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %136, ptr noundef nonnull @.str.109)
  %138 = load ptr, ptr %0, align 8, !tbaa !5
  %139 = getelementptr inbounds ptr, ptr %138, i64 %indvars.iv
  %140 = load ptr, ptr %139, align 8, !tbaa !5
  %141 = load i32, ptr @dim, align 4, !tbaa !9
  tail call void @_Z10printPointPdi(ptr noundef %140, i32 noundef %141)
  %142 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.12)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !17

143:                                              ; preds = %._crit_edge, %125
  %144 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.76)
  ret void
}

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw(ptr noundef nonnull align 8 dereferenceable(8), i32) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt4setwi(i32 noundef) local_unnamed_addr #3

declare void @_Z13annDeallocPtsRPPd(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

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

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

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

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

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

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

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

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

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

attributes #0 = { 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 #1 = { 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 #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 = { inlinehint 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" }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS7Distrib", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"_ZTS7StatLev", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass