; LLVM IR from indjev99/Evolving-Snakes :: sources/draw_neural_net.ll (Z7drawNetP10GLFWwindowRSt6vectorIdSaIdEEiRib)

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

%struct.ctrNeuralNetwork = type { %struct.controller, double, double, double, i32, %"class.std::vector.0", %"class.std::vector.5", %"class.std::vector.10", %"class.std::vector.10", %"class.std::vector.10" }
%struct.controller = type { ptr, [3 x i32], [3 x i8], [1 x i32], [1 x i8], [1 x i32], [1 x i8], i32, i32 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::vector<std::vector<double>>, std::allocator<std::vector<std::vector<double>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::vector<double>>, std::allocator<std::vector<std::vector<double>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::vector<double>>, std::allocator<std::vector<std::vector<double>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::vector<double>>, std::allocator<std::vector<std::vector<double>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@WINDOWS_WIDTH = external global i32, align 4
@WINDOWS_HEIGHT = external global i32, align 4
@NN_OUTLINE_COLOUR_R = external constant double, align 8
@NN_OUTLINE_COLOUR_G = external constant double, align 8
@NN_OUTLINE_COLOUR_B = external constant double, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7drawNetP10GLFWwindowRSt6vectorIdSaIdEEiRib(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %2, ptr noundef nonnull align 4 dereferenceable(4) %3, i1 noundef zeroext %4) #0 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca %struct.ctrNeuralNetwork, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  %30 = zext i1 %4 to i8
  store i8 %30, ptr %10, align 1, !tbaa !11
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = call noundef zeroext i1 @_ZNKSt6vectorIdSaIdEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #4
  br i1 %32, label %33, label %34

33:                                               ; preds = %5
  br label %491

34:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 200, ptr %11) #4
  call void @_ZN16ctrNeuralNetworkC1Ev(ptr noundef nonnull align 8 dereferenceable(200) %11)
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN16ctrNeuralNetwork9setValuesERSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(200) %11, ptr noundef nonnull align 8 dereferenceable(24) %35)
          to label %36 unwind label %51

36:                                               ; preds = %34
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = load i32, ptr %37, align 4, !tbaa !9
  %39 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 5
  %40 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 5
  %41 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #4
  %42 = sub i64 %41, 1
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %42) #4
  %44 = load i32, ptr %43, align 4, !tbaa !9
  %45 = icmp sge i32 %38, %44
  br i1 %45, label %46, label %55

46:                                               ; preds = %36
  %47 = load i8, ptr %10, align 1, !tbaa !11, !range !13, !noundef !14
  %48 = trunc i8 %47 to i1
  br i1 %48, label %49, label %55

49:                                               ; preds = %46
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 -1, ptr %50, align 4, !tbaa !9
  br label %55

51:                                               ; preds = %58, %34
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %12, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %13, align 4
  br label %493

55:                                               ; preds = %49, %46, %36
  %56 = load i32, ptr %8, align 4, !tbaa !9
  %57 = icmp sge i32 %56, 2
  br i1 %57, label %58, label %64

58:                                               ; preds = %55
  %59 = load i32, ptr %8, align 4, !tbaa !9
  %60 = sub nsw i32 %59, 2
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = load i32, ptr %61, align 4, !tbaa !9
  invoke void @_ZN16ctrNeuralNetwork14calcImportanceEii(ptr noundef nonnull align 8 dereferenceable(200) %11, i32 noundef %60, i32 noundef %62)
          to label %63 unwind label %51

63:                                               ; preds = %58
  br label %64

64:                                               ; preds = %63, %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %65 = load i32, ptr @WINDOWS_WIDTH, align 4, !tbaa !9
  %66 = sitofp i32 %65 to double
  %67 = fmul double 1.000000e+00, %66
  %68 = load i32, ptr @WINDOWS_HEIGHT, align 4, !tbaa !9
  %69 = sitofp i32 %68 to double
  %70 = fdiv double %67, %69
  store double %70, ptr %22, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  invoke void @glEnable(i32 noundef 3042)
          to label %71 unwind label %92

71:                                               ; preds = %64
  invoke void @glBlendFunc(i32 noundef 770, i32 noundef 771)
          to label %72 unwind label %92

72:                                               ; preds = %71
  invoke void @glBegin(i32 noundef 1)
          to label %73 unwind label %92

73:                                               ; preds = %72
  %74 = load double, ptr %22, align 8, !tbaa !15
  %75 = fmul double %74, 2.000000e+00
  %76 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 5
  %77 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %76) #4
  %78 = uitofp i64 %77 to double
  %79 = fdiv double %75, %78
  store double %79, ptr %14, align 8, !tbaa !15
  %80 = load double, ptr %22, align 8, !tbaa !15
  %81 = fneg double %80
  %82 = load double, ptr %14, align 8, !tbaa !15
  %83 = fdiv double %82, 2.000000e+00
  %84 = fadd double %81, %83
  store double %84, ptr %17, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  store i32 1, ptr %24, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %234, %73
  %86 = load i32, ptr %24, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 5
  %89 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %88) #4
  %90 = icmp ult i64 %87, %89
  br i1 %90, label %96, label %91

91:                                               ; preds = %85
  store i32 2, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  br label %237

92:                                               ; preds = %489, %488, %238, %237, %72, %71, %64
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %12, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %13, align 4
  br label %492

96:                                               ; preds = %85
  %97 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 5
  %98 = load i32, ptr %24, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef %99) #4
  %101 = load i32, ptr %100, align 4, !tbaa !9
  %102 = sitofp i32 %101 to double
  %103 = fdiv double 2.000000e+00, %102
  store double %103, ptr %15, align 8, !tbaa !15
  %104 = load double, ptr %15, align 8, !tbaa !15
  %105 = fdiv double %104, 2.000000e+00
  %106 = fadd double 1.000000e+00, %105
  store double %106, ptr %18, align 8, !tbaa !15
  %107 = load double, ptr %14, align 8, !tbaa !15
  %108 = load double, ptr %17, align 8, !tbaa !15
  %109 = fadd double %108, %107
  store double %109, ptr %17, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %110

110:                                              ; preds = %230, %96
  %111 = load i32, ptr %26, align 4, !tbaa !9
  %112 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 5
  %113 = load i32, ptr %24, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %112, i64 noundef %114) #4
  %116 = load i32, ptr %115, align 4, !tbaa !9
  %117 = icmp slt i32 %111, %116
  br i1 %117, label %119, label %118

118:                                              ; preds = %110
  store i32 5, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  br label %233

119:                                              ; preds = %110
  %120 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 5
  %121 = load i32, ptr %24, align 4, !tbaa !9
  %122 = sub nsw i32 %121, 1
  %123 = sext i32 %122 to i64
  %124 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %120, i64 noundef %123) #4
  %125 = load i32, ptr %124, align 4, !tbaa !9
  %126 = sitofp i32 %125 to double
  %127 = fdiv double 2.000000e+00, %126
  store double %127, ptr %16, align 8, !tbaa !15
  %128 = load double, ptr %16, align 8, !tbaa !15
  %129 = fdiv double %128, 2.000000e+00
  %130 = fadd double 1.000000e+00, %129
  store double %130, ptr %19, align 8, !tbaa !15
  %131 = load double, ptr %15, align 8, !tbaa !15
  %132 = load double, ptr %18, align 8, !tbaa !15
  %133 = fsub double %132, %131
  store double %133, ptr %18, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %134

134:                                              ; preds = %226, %119
  %135 = load i32, ptr %27, align 4, !tbaa !9
  %136 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 5
  %137 = load i32, ptr %24, align 4, !tbaa !9
  %138 = sub nsw i32 %137, 1
  %139 = sext i32 %138 to i64
  %140 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %136, i64 noundef %139) #4
  %141 = load i32, ptr %140, align 4, !tbaa !9
  %142 = icmp slt i32 %135, %141
  br i1 %142, label %144, label %143

143:                                              ; preds = %134
  store i32 8, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  br label %229

144:                                              ; preds = %134
  %145 = load double, ptr %16, align 8, !tbaa !15
  %146 = load double, ptr %19, align 8, !tbaa !15
  %147 = fsub double %146, %145
  store double %147, ptr %19, align 8, !tbaa !15
  %148 = load i32, ptr %8, align 4, !tbaa !9
  %149 = icmp eq i32 %148, 1
  br i1 %149, label %150, label %172

150:                                              ; preds = %144
  %151 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 6
  %152 = load i32, ptr %24, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_IdSaIdEESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %151, i64 noundef %153) #4
  %155 = load i32, ptr %26, align 4, !tbaa !9
  %156 = sext i32 %155 to i64
  %157 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %154, i64 noundef %156) #4
  %158 = load i32, ptr %27, align 4, !tbaa !9
  %159 = sext i32 %158 to i64
  %160 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %157, i64 noundef %159) #4
  %161 = load double, ptr %160, align 8, !tbaa !15
  %162 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 7
  %163 = load i32, ptr %24, align 4, !tbaa !9
  %164 = sub nsw i32 %163, 1
  %165 = sext i32 %164 to i64
  %166 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %162, i64 noundef %165) #4
  %167 = load i32, ptr %27, align 4, !tbaa !9
  %168 = sext i32 %167 to i64
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %166, i64 noundef %168) #4
  %170 = load double, ptr %169, align 8, !tbaa !15
  %171 = fmul double %161, %170
  store double %171, ptr %20, align 8, !tbaa !15
  br label %184

172:                                              ; preds = %144
  %173 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 6
  %174 = load i32, ptr %24, align 4, !tbaa !9
  %175 = sext i32 %174 to i64
  %176 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_IdSaIdEESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %173, i64 noundef %175) #4
  %177 = load i32, ptr %26, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %176, i64 noundef %178) #4
  %180 = load i32, ptr %27, align 4, !tbaa !9
  %181 = sext i32 %180 to i64
  %182 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %179, i64 noundef %181) #4
  %183 = load double, ptr %182, align 8, !tbaa !15
  store double %183, ptr %20, align 8, !tbaa !15
  br label %184

184:                                              ; preds = %172, %150
  %185 = load double, ptr %20, align 8, !tbaa !15
  %186 = fcmp oge double %185, 0.000000e+00
  br i1 %186, label %187, label %203

187:                                              ; preds = %184
  %188 = load double, ptr %20, align 8, !tbaa !15
  %189 = fsub double %188, 1.000000e+00
  store double %189, ptr %21, align 8, !tbaa !15
  %190 = load double, ptr %21, align 8, !tbaa !15
  %191 = fcmp olt double %190, 0.000000e+00
  br i1 %191, label %192, label %193

192:                                              ; preds = %187
  store double 0.000000e+00, ptr %21, align 8, !tbaa !15
  br label %193

193:                                              ; preds = %192, %187
  %194 = load double, ptr %21, align 8, !tbaa !15
  %195 = fptrunc double %194 to float
  %196 = load double, ptr %20, align 8, !tbaa !15
  %197 = fptrunc double %196 to float
  invoke void @glColor4f(float noundef 1.000000e+00, float noundef %195, float noundef 0.000000e+00, float noundef %197)
          to label %198 unwind label %199

198:                                              ; preds = %193
  br label %217

199:                                              ; preds = %222, %217, %210, %193
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %12, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  br label %492

203:                                              ; preds = %184
  %204 = load double, ptr %20, align 8, !tbaa !15
  %205 = fneg double %204
  %206 = fsub double %205, 1.000000e+00
  store double %206, ptr %21, align 8, !tbaa !15
  %207 = load double, ptr %21, align 8, !tbaa !15
  %208 = fcmp olt double %207, 0.000000e+00
  br i1 %208, label %209, label %210

209:                                              ; preds = %203
  store double 0.000000e+00, ptr %21, align 8, !tbaa !15
  br label %210

210:                                              ; preds = %209, %203
  %211 = load double, ptr %21, align 8, !tbaa !15
  %212 = fptrunc double %211 to float
  %213 = load double, ptr %20, align 8, !tbaa !15
  %214 = fneg double %213
  %215 = fptrunc double %214 to float
  invoke void @glColor4f(float noundef 0.000000e+00, float noundef %212, float noundef 1.000000e+00, float noundef %215)
          to label %216 unwind label %199

216:                                              ; preds = %210
  br label %217

217:                                              ; preds = %216, %198
  %218 = load double, ptr %17, align 8, !tbaa !15
  %219 = load double, ptr %14, align 8, !tbaa !15
  %220 = fsub double %218, %219
  %221 = load double, ptr %19, align 8, !tbaa !15
  invoke void @glVertex2d(double noundef %220, double noundef %221)
          to label %222 unwind label %199

222:                                              ; preds = %217
  %223 = load double, ptr %17, align 8, !tbaa !15
  %224 = load double, ptr %18, align 8, !tbaa !15
  invoke void @glVertex2d(double noundef %223, double noundef %224)
          to label %225 unwind label %199

225:                                              ; preds = %222
  br label %226

226:                                              ; preds = %225
  %227 = load i32, ptr %27, align 4, !tbaa !9
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %27, align 4, !tbaa !9
  br label %134, !llvm.loop !17

229:                                              ; preds = %143
  br label %230

230:                                              ; preds = %229
  %231 = load i32, ptr %26, align 4, !tbaa !9
  %232 = add nsw i32 %231, 1
  store i32 %232, ptr %26, align 4, !tbaa !9
  br label %110, !llvm.loop !19

233:                                              ; preds = %118
  br label %234

234:                                              ; preds = %233
  %235 = load i32, ptr %24, align 4, !tbaa !9
  %236 = add nsw i32 %235, 1
  store i32 %236, ptr %24, align 4, !tbaa !9
  br label %85, !llvm.loop !20

237:                                              ; preds = %91
  invoke void @glEnd()
          to label %238 unwind label %92

238:                                              ; preds = %237
  invoke void @glBegin(i32 noundef 4)
          to label %239 unwind label %92

239:                                              ; preds = %238
  %240 = load double, ptr %22, align 8, !tbaa !15
  %241 = fmul double %240, 2.000000e+00
  %242 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 5
  %243 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %242) #4
  %244 = uitofp i64 %243 to double
  %245 = fdiv double %241, %244
  store double %245, ptr %14, align 8, !tbaa !15
  %246 = load double, ptr %22, align 8, !tbaa !15
  %247 = fneg double %246
  %248 = load double, ptr %14, align 8, !tbaa !15
  %249 = fdiv double %248, 2.000000e+00
  %250 = fsub double %247, %249
  store double %250, ptr %17, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %251

251:                                              ; preds = %485, %239
  %252 = load i32, ptr %28, align 4, !tbaa !9
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 5
  %255 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %254) #4
  %256 = icmp ult i64 %253, %255
  br i1 %256, label %258, label %257

257:                                              ; preds = %251
  store i32 11, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  br label %488

258:                                              ; preds = %251
  %259 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 5
  %260 = load i32, ptr %28, align 4, !tbaa !9
  %261 = sext i32 %260 to i64
  %262 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %259, i64 noundef %261) #4
  %263 = load i32, ptr %262, align 4, !tbaa !9
  %264 = sitofp i32 %263 to double
  %265 = fdiv double 2.000000e+00, %264
  store double %265, ptr %15, align 8, !tbaa !15
  %266 = load double, ptr %15, align 8, !tbaa !15
  %267 = fdiv double %266, 2.000000e+00
  %268 = fadd double 1.000000e+00, %267
  store double %268, ptr %18, align 8, !tbaa !15
  %269 = load double, ptr %14, align 8, !tbaa !15
  %270 = load double, ptr %17, align 8, !tbaa !15
  %271 = fadd double %270, %269
  store double %271, ptr %17, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %272

272:                                              ; preds = %481, %258
  %273 = load i32, ptr %29, align 4, !tbaa !9
  %274 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 5
  %275 = load i32, ptr %28, align 4, !tbaa !9
  %276 = sext i32 %275 to i64
  %277 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %274, i64 noundef %276) #4
  %278 = load i32, ptr %277, align 4, !tbaa !9
  %279 = icmp slt i32 %273, %278
  br i1 %279, label %281, label %280

280:                                              ; preds = %272
  store i32 14, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  br label %484

281:                                              ; preds = %272
  %282 = load double, ptr %15, align 8, !tbaa !15
  %283 = load double, ptr %18, align 8, !tbaa !15
  %284 = fsub double %283, %282
  store double %284, ptr %18, align 8, !tbaa !15
  %285 = load double, ptr %15, align 8, !tbaa !15
  %286 = fdiv double %285, 4.000000e+00
  store double %286, ptr %23, align 8, !tbaa !15
  %287 = load double, ptr %14, align 8, !tbaa !15
  %288 = fdiv double %287, 4.000000e+00
  %289 = load double, ptr %23, align 8, !tbaa !15
  %290 = fcmp olt double %288, %289
  br i1 %290, label %291, label %294

291:                                              ; preds = %281
  %292 = load double, ptr %14, align 8, !tbaa !15
  %293 = fdiv double %292, 4.000000e+00
  store double %293, ptr %23, align 8, !tbaa !15
  br label %294

294:                                              ; preds = %291, %281
  %295 = load double, ptr @NN_OUTLINE_COLOUR_R, align 8, !tbaa !15
  %296 = fptrunc double %295 to float
  %297 = load double, ptr @NN_OUTLINE_COLOUR_G, align 8, !tbaa !15
  %298 = fptrunc double %297 to float
  %299 = load double, ptr @NN_OUTLINE_COLOUR_B, align 8, !tbaa !15
  %300 = fptrunc double %299 to float
  invoke void @glColor4f(float noundef %296, float noundef %298, float noundef %300, float noundef 1.000000e+00)
          to label %301 unwind label %344

301:                                              ; preds = %294
  %302 = load double, ptr %17, align 8, !tbaa !15
  %303 = fptrunc double %302 to float
  %304 = load double, ptr %18, align 8, !tbaa !15
  %305 = fptrunc double %304 to float
  %306 = load double, ptr %23, align 8, !tbaa !15
  %307 = fmul double %306, 1.075000e+00
  %308 = fptrunc double %307 to float
  %309 = load double, ptr %23, align 8, !tbaa !15
  %310 = fmul double %309, 1.075000e+00
  %311 = fptrunc double %310 to float
  invoke void @_Z15drawPartEllipseffffdd(float noundef %303, float noundef %305, float noundef %308, float noundef %311, double noundef 0.000000e+00, double noundef 3.600000e+02)
          to label %312 unwind label %344

312:                                              ; preds = %301
  %313 = load i32, ptr %8, align 4, !tbaa !9
  %314 = icmp sge i32 %313, 2
  br i1 %314, label %315, label %348

315:                                              ; preds = %312
  %316 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 8
  %317 = load i32, ptr %28, align 4, !tbaa !9
  %318 = sext i32 %317 to i64
  %319 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %316, i64 noundef %318) #4
  %320 = load i32, ptr %29, align 4, !tbaa !9
  %321 = sext i32 %320 to i64
  %322 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %319, i64 noundef %321) #4
  %323 = load double, ptr %322, align 8, !tbaa !15
  %324 = fptrunc double %323 to float
  %325 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 8
  %326 = load i32, ptr %28, align 4, !tbaa !9
  %327 = sext i32 %326 to i64
  %328 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %325, i64 noundef %327) #4
  %329 = load i32, ptr %29, align 4, !tbaa !9
  %330 = sext i32 %329 to i64
  %331 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %328, i64 noundef %330) #4
  %332 = load double, ptr %331, align 8, !tbaa !15
  %333 = fptrunc double %332 to float
  %334 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 8
  %335 = load i32, ptr %28, align 4, !tbaa !9
  %336 = sext i32 %335 to i64
  %337 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %334, i64 noundef %336) #4
  %338 = load i32, ptr %29, align 4, !tbaa !9
  %339 = sext i32 %338 to i64
  %340 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %337, i64 noundef %339) #4
  %341 = load double, ptr %340, align 8, !tbaa !15
  %342 = fptrunc double %341 to float
  invoke void @glColor4f(float noundef %324, float noundef %333, float noundef %342, float noundef 1.000000e+00)
          to label %343 unwind label %344

343:                                              ; preds = %315
  br label %422

344:                                              ; preds = %468, %456, %445, %422, %387, %358, %315, %301, %294
  %345 = landingpad { ptr, i32 }
          cleanup
  %346 = extractvalue { ptr, i32 } %345, 0
  store ptr %346, ptr %12, align 8
  %347 = extractvalue { ptr, i32 } %345, 1
  store i32 %347, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  br label %492

348:                                              ; preds = %312
  %349 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 7
  %350 = load i32, ptr %28, align 4, !tbaa !9
  %351 = sext i32 %350 to i64
  %352 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %349, i64 noundef %351) #4
  %353 = load i32, ptr %29, align 4, !tbaa !9
  %354 = sext i32 %353 to i64
  %355 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %352, i64 noundef %354) #4
  %356 = load double, ptr %355, align 8, !tbaa !15
  %357 = fcmp oge double %356, 0.000000e+00
  br i1 %357, label %358, label %387

358:                                              ; preds = %348
  %359 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 7
  %360 = load i32, ptr %28, align 4, !tbaa !9
  %361 = sext i32 %360 to i64
  %362 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %359, i64 noundef %361) #4
  %363 = load i32, ptr %29, align 4, !tbaa !9
  %364 = sext i32 %363 to i64
  %365 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %362, i64 noundef %364) #4
  %366 = load double, ptr %365, align 8, !tbaa !15
  %367 = fptrunc double %366 to float
  %368 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 7
  %369 = load i32, ptr %28, align 4, !tbaa !9
  %370 = sext i32 %369 to i64
  %371 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %368, i64 noundef %370) #4
  %372 = load i32, ptr %29, align 4, !tbaa !9
  %373 = sext i32 %372 to i64
  %374 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %371, i64 noundef %373) #4
  %375 = load double, ptr %374, align 8, !tbaa !15
  %376 = fptrunc double %375 to float
  %377 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 7
  %378 = load i32, ptr %28, align 4, !tbaa !9
  %379 = sext i32 %378 to i64
  %380 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %377, i64 noundef %379) #4
  %381 = load i32, ptr %29, align 4, !tbaa !9
  %382 = sext i32 %381 to i64
  %383 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %380, i64 noundef %382) #4
  %384 = load double, ptr %383, align 8, !tbaa !15
  %385 = fptrunc double %384 to float
  invoke void @glColor4f(float noundef %367, float noundef %376, float noundef %385, float noundef 1.000000e+00)
          to label %386 unwind label %344

386:                                              ; preds = %358
  br label %421

387:                                              ; preds = %348
  %388 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 7
  %389 = load i32, ptr %28, align 4, !tbaa !9
  %390 = sext i32 %389 to i64
  %391 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %388, i64 noundef %390) #4
  %392 = load i32, ptr %29, align 4, !tbaa !9
  %393 = sext i32 %392 to i64
  %394 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %391, i64 noundef %393) #4
  %395 = load double, ptr %394, align 8, !tbaa !15
  %396 = fneg double %395
  %397 = fdiv double %396, 2.000000e+00
  %398 = fptrunc double %397 to float
  %399 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 7
  %400 = load i32, ptr %28, align 4, !tbaa !9
  %401 = sext i32 %400 to i64
  %402 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %399, i64 noundef %401) #4
  %403 = load i32, ptr %29, align 4, !tbaa !9
  %404 = sext i32 %403 to i64
  %405 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %402, i64 noundef %404) #4
  %406 = load double, ptr %405, align 8, !tbaa !15
  %407 = fneg double %406
  %408 = fdiv double %407, 2.000000e+00
  %409 = fptrunc double %408 to float
  %410 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 7
  %411 = load i32, ptr %28, align 4, !tbaa !9
  %412 = sext i32 %411 to i64
  %413 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %410, i64 noundef %412) #4
  %414 = load i32, ptr %29, align 4, !tbaa !9
  %415 = sext i32 %414 to i64
  %416 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %413, i64 noundef %415) #4
  %417 = load double, ptr %416, align 8, !tbaa !15
  %418 = fneg double %417
  %419 = fptrunc double %418 to float
  invoke void @glColor4f(float noundef %398, float noundef %409, float noundef %419, float noundef 1.000000e+00)
          to label %420 unwind label %344

420:                                              ; preds = %387
  br label %421

421:                                              ; preds = %420, %386
  br label %422

422:                                              ; preds = %421, %343
  %423 = load double, ptr %17, align 8, !tbaa !15
  %424 = fptrunc double %423 to float
  %425 = load double, ptr %18, align 8, !tbaa !15
  %426 = fptrunc double %425 to float
  %427 = load double, ptr %23, align 8, !tbaa !15
  %428 = fptrunc double %427 to float
  %429 = load double, ptr %23, align 8, !tbaa !15
  %430 = fptrunc double %429 to float
  invoke void @_Z15drawPartEllipseffffdd(float noundef %424, float noundef %426, float noundef %428, float noundef %430, double noundef 0.000000e+00, double noundef 3.600000e+02)
          to label %431 unwind label %344

431:                                              ; preds = %422
  %432 = load ptr, ptr %9, align 8, !tbaa !5
  %433 = load i32, ptr %432, align 4, !tbaa !9
  %434 = icmp ne i32 %433, -1
  br i1 %434, label %435, label %480

435:                                              ; preds = %431
  %436 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 9
  %437 = load i32, ptr %28, align 4, !tbaa !9
  %438 = sext i32 %437 to i64
  %439 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %436, i64 noundef %438) #4
  %440 = load i32, ptr %29, align 4, !tbaa !9
  %441 = sext i32 %440 to i64
  %442 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %439, i64 noundef %441) #4
  %443 = load double, ptr %442, align 8, !tbaa !15
  %444 = fcmp oge double %443, 0.000000e+00
  br i1 %444, label %445, label %456

445:                                              ; preds = %435
  %446 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 9
  %447 = load i32, ptr %28, align 4, !tbaa !9
  %448 = sext i32 %447 to i64
  %449 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %446, i64 noundef %448) #4
  %450 = load i32, ptr %29, align 4, !tbaa !9
  %451 = sext i32 %450 to i64
  %452 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %449, i64 noundef %451) #4
  %453 = load double, ptr %452, align 8, !tbaa !15
  %454 = fptrunc double %453 to float
  invoke void @glColor4f(float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef %454)
          to label %455 unwind label %344

455:                                              ; preds = %445
  br label %468

456:                                              ; preds = %435
  %457 = getelementptr inbounds %struct.ctrNeuralNetwork, ptr %11, i32 0, i32 9
  %458 = load i32, ptr %28, align 4, !tbaa !9
  %459 = sext i32 %458 to i64
  %460 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %457, i64 noundef %459) #4
  %461 = load i32, ptr %29, align 4, !tbaa !9
  %462 = sext i32 %461 to i64
  %463 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %460, i64 noundef %462) #4
  %464 = load double, ptr %463, align 8, !tbaa !15
  %465 = fneg double %464
  %466 = fptrunc double %465 to float
  invoke void @glColor4f(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef %466)
          to label %467 unwind label %344

467:                                              ; preds = %456
  br label %468

468:                                              ; preds = %467, %455
  %469 = load double, ptr %17, align 8, !tbaa !15
  %470 = fptrunc double %469 to float
  %471 = load double, ptr %18, align 8, !tbaa !15
  %472 = fptrunc double %471 to float
  %473 = load double, ptr %23, align 8, !tbaa !15
  %474 = fdiv double %473, 2.000000e+00
  %475 = fptrunc double %474 to float
  %476 = load double, ptr %23, align 8, !tbaa !15
  %477 = fdiv double %476, 2.000000e+00
  %478 = fptrunc double %477 to float
  invoke void @_Z15drawPartEllipseffffdd(float noundef %470, float noundef %472, float noundef %475, float noundef %478, double noundef 0.000000e+00, double noundef 3.600000e+02)
          to label %479 unwind label %344

479:                                              ; preds = %468
  br label %480

480:                                              ; preds = %479, %431
  br label %481

481:                                              ; preds = %480
  %482 = load i32, ptr %29, align 4, !tbaa !9
  %483 = add nsw i32 %482, 1
  store i32 %483, ptr %29, align 4, !tbaa !9
  br label %272, !llvm.loop !21

484:                                              ; preds = %280
  br label %485

485:                                              ; preds = %484
  %486 = load i32, ptr %28, align 4, !tbaa !9
  %487 = add nsw i32 %486, 1
  store i32 %487, ptr %28, align 4, !tbaa !9
  br label %251, !llvm.loop !22

488:                                              ; preds = %257
  invoke void @glEnd()
          to label %489 unwind label %92

489:                                              ; preds = %488
  invoke void @glDisable(i32 noundef 3042)
          to label %490 unwind label %92

490:                                              ; preds = %489
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @_ZN16ctrNeuralNetworkD2Ev(ptr noundef nonnull align 8 dereferenceable(200) %11) #4
  call void @llvm.lifetime.end.p0(i64 200, ptr %11) #4
  br label %491

491:                                              ; preds = %490, %33
  ret void

492:                                              ; preds = %344, %199, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %493

493:                                              ; preds = %492, %51
  call void @_ZN16ctrNeuralNetworkD2Ev(ptr noundef nonnull align 8 dereferenceable(200) %11) #4
  call void @llvm.lifetime.end.p0(i64 200, ptr %11) #4
  br label %494

494:                                              ; preds = %493
  %495 = load ptr, ptr %12, align 8
  %496 = load i32, ptr %13, align 4
  %497 = insertvalue { ptr, i32 } poison, ptr %495, 0
  %498 = insertvalue { ptr, i32 } %497, i32 %496, 1
  resume { ptr, i32 } %498
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIdSaIdEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

declare void @_ZN16ctrNeuralNetworkC1Ev(ptr noundef nonnull align 8 dereferenceable(200)) unnamed_addr #3

declare void @_ZN16ctrNeuralNetwork9setValuesERSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

declare void @_ZN16ctrNeuralNetwork14calcImportanceEii(ptr noundef nonnull align 8 dereferenceable(200), i32 noundef, i32 noundef) #3

declare void @glEnable(i32 noundef) #3

declare void @glBlendFunc(i32 noundef, i32 noundef) #3

declare void @glBegin(i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_IdSaIdEESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

declare void @glColor4f(float noundef, float noundef, float noundef, float noundef) #3

declare void @glVertex2d(double noundef, double noundef) #3

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

declare void @glEnd() #3

declare void @_Z15drawPartEllipseffffdd(float noundef, float noundef, float noundef, float noundef, double noundef, double noundef) #3

declare void @glDisable(i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN16ctrNeuralNetworkD2Ev(ptr noundef nonnull align 8 dereferenceable(200)) unnamed_addr #1 align 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 = { 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 #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 = { 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 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.ctrNeuralNetwork = type { %struct.controller, double, double, double, i32, %"class.std::vector.0", %"class.std::vector.5", %"class.std::vector.10", %"class.std::vector.10", %"class.std::vector.10" }
%struct.controller = type { ptr, [3 x i32], [3 x i8], [1 x i32], [1 x i8], [1 x i32], [1 x i8], i32, i32 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::vector<std::vector<double>>, std::allocator<std::vector<std::vector<double>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::vector<double>>, std::allocator<std::vector<std::vector<double>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::vector<double>>, std::allocator<std::vector<std::vector<double>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::vector<double>>, std::allocator<std::vector<std::vector<double>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@WINDOWS_WIDTH = external local_unnamed_addr global i32, align 4
@WINDOWS_HEIGHT = external local_unnamed_addr global i32, align 4
@NN_OUTLINE_COLOUR_R = external local_unnamed_addr constant double, align 8
@NN_OUTLINE_COLOUR_G = external local_unnamed_addr constant double, align 8
@NN_OUTLINE_COLOUR_B = external local_unnamed_addr constant double, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7drawNetP10GLFWwindowRSt6vectorIdSaIdEEiRib(ptr nocapture noundef readnone %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %2, ptr nocapture noundef nonnull align 4 dereferenceable(4) %3, i1 noundef zeroext %4) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %6 = alloca %struct.ctrNeuralNetwork, align 8
  %7 = tail call noundef zeroext i1 @_ZNKSt6vectorIdSaIdEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  br i1 %7, label %273, label %8

8:                                                ; preds = %5
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %6) #4
  call void @_ZN16ctrNeuralNetworkC1Ev(ptr noundef nonnull align 8 dereferenceable(200) %6)
  invoke void @_ZN16ctrNeuralNetwork9setValuesERSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(200) %6, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %9 unwind label %17

9:                                                ; preds = %8
  %10 = load i32, ptr %3, align 4, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %6, i64 80
  %12 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  %13 = add i64 %12, -1
  %14 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %13) #4
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %.not = icmp sge i32 %10, %15
  %brmerge.not = and i1 %.not, %4
  br i1 %brmerge.not, label %16, label %19

16:                                               ; preds = %9
  store i32 -1, ptr %3, align 4, !tbaa !5
  br label %19

17:                                               ; preds = %21, %8
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %274

19:                                               ; preds = %9, %16
  %20 = icmp sgt i32 %2, 1
  br i1 %20, label %21, label %24

21:                                               ; preds = %19
  %22 = add nsw i32 %2, -2
  %23 = load i32, ptr %3, align 4, !tbaa !5
  invoke void @_ZN16ctrNeuralNetwork14calcImportanceEii(ptr noundef nonnull align 8 dereferenceable(200) %6, i32 noundef %22, i32 noundef %23)
          to label %24 unwind label %17

24:                                               ; preds = %21, %19
  %25 = load i32, ptr @WINDOWS_WIDTH, align 4, !tbaa !5
  %26 = sitofp i32 %25 to double
  %27 = load i32, ptr @WINDOWS_HEIGHT, align 4, !tbaa !5
  %28 = sitofp i32 %27 to double
  %29 = fdiv double %26, %28
  invoke void @glEnable(i32 noundef 3042)
          to label %30 unwind label %105

30:                                               ; preds = %24
  invoke void @glBlendFunc(i32 noundef 770, i32 noundef 771)
          to label %31 unwind label %105

31:                                               ; preds = %30
  invoke void @glBegin(i32 noundef 1)
          to label %32 unwind label %105

32:                                               ; preds = %31
  %33 = fmul double %29, 2.000000e+00
  %34 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  %35 = uitofp i64 %34 to double
  %36 = fdiv double %33, %35
  %37 = fneg double %29
  %38 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  %39 = icmp ugt i64 %38, 1
  br i1 %39, label %.lr.ph148, label %._crit_edge

.lr.ph148:                                        ; preds = %32
  %40 = fmul double %36, 5.000000e-01
  %41 = fsub double %40, %29
  %42 = icmp eq i32 %2, 1
  %43 = getelementptr inbounds i8, ptr %6, i64 104
  %44 = getelementptr inbounds i8, ptr %6, i64 128
  br i1 %42, label %.lr.ph148.split.us, label %.lr.ph148.split

.lr.ph148.split.us:                               ; preds = %.lr.ph148, %._crit_edge144.split.us.us
  %indvars.iv177 = phi i64 [ %indvars.iv.next178, %._crit_edge144.split.us.us ], [ 1, %.lr.ph148 ]
  %.0123146.us = phi double [ %49, %._crit_edge144.split.us.us ], [ %41, %.lr.ph148 ]
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv177) #4
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = sitofp i32 %46 to double
  %48 = fdiv double 2.000000e+00, %47
  %49 = fadd double %36, %.0123146.us
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv177) #4
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = icmp sgt i32 %51, 0
  br i1 %52, label %.lr.ph143.us, label %._crit_edge144.split.us.us

._crit_edge144.split.us.us:                       ; preds = %._crit_edge.split.us.us.us, %.lr.ph148.split.us
  %indvars.iv.next178 = add nuw nsw i64 %indvars.iv177, 1
  %53 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  %54 = icmp ugt i64 %53, %indvars.iv.next178
  br i1 %54, label %.lr.ph148.split.us, label %._crit_edge, !llvm.loop !9

.lr.ph143.us:                                     ; preds = %.lr.ph148.split.us
  %55 = fmul double %48, 5.000000e-01
  %56 = fadd double %55, 1.000000e+00
  %57 = add nsw i64 %indvars.iv177, -1
  %58 = fsub double %49, %36
  br label %59

59:                                               ; preds = %._crit_edge.split.us.us.us, %.lr.ph143.us
  %indvars.iv174 = phi i64 [ %indvars.iv.next175, %._crit_edge.split.us.us.us ], [ 0, %.lr.ph143.us ]
  %.0121140.us.us = phi double [ %64, %._crit_edge.split.us.us.us ], [ %56, %.lr.ph143.us ]
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %57) #4
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = sitofp i32 %61 to double
  %63 = fdiv double 2.000000e+00, %62
  %64 = fsub double %.0121140.us.us, %48
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %57) #4
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = icmp sgt i32 %66, 0
  br i1 %67, label %.lr.ph.us.us, label %._crit_edge.split.us.us.us

._crit_edge.split.us.us.us:                       ; preds = %99, %59
  %indvars.iv.next175 = add nuw nsw i64 %indvars.iv174, 1
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv177) #4
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = icmp slt i64 %indvars.iv.next175, %70
  br i1 %71, label %59, label %._crit_edge144.split.us.us, !llvm.loop !11

.lr.ph.us.us:                                     ; preds = %59
  %72 = fmul double %63, 5.000000e-01
  %73 = fadd double %72, 1.000000e+00
  br label %74

74:                                               ; preds = %99, %.lr.ph.us.us
  %indvars.iv171 = phi i64 [ %indvars.iv.next172, %99 ], [ 0, %.lr.ph.us.us ]
  %.0120138.us.us.us = phi double [ %75, %99 ], [ %73, %.lr.ph.us.us ]
  %75 = fsub double %.0120138.us.us.us, %63
  %76 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_IdSaIdEESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %indvars.iv177) #4
  %77 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %indvars.iv174) #4
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %indvars.iv171) #4
  %79 = load double, ptr %78, align 8, !tbaa !12
  %80 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %57) #4
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef %indvars.iv171) #4
  %82 = load double, ptr %81, align 8, !tbaa !12
  %83 = fmul double %79, %82
  %84 = fcmp ult double %83, 0.000000e+00
  %85 = fptrunc double %83 to float
  br i1 %84, label %89, label %86

86:                                               ; preds = %74
  %87 = fadd double %83, -1.000000e+00
  %88 = fcmp olt double %87, 0.000000e+00
  %.0117.us.us.us = select i1 %88, double 0.000000e+00, double %87
  br label %.invoke

89:                                               ; preds = %74
  %90 = fsub double -1.000000e+00, %83
  %91 = fcmp olt double %90, 0.000000e+00
  %.1118.us.us.us = select i1 %91, double 0.000000e+00, double %90
  %92 = fneg float %85
  br label %.invoke

.invoke:                                          ; preds = %86, %89
  %93 = phi float [ 0.000000e+00, %89 ], [ 1.000000e+00, %86 ]
  %.in190 = phi double [ %.1118.us.us.us, %89 ], [ %.0117.us.us.us, %86 ]
  %94 = phi float [ 1.000000e+00, %89 ], [ 0.000000e+00, %86 ]
  %95 = phi float [ %92, %89 ], [ %85, %86 ]
  %96 = fptrunc double %.in190 to float
  invoke void @glColor4f(float noundef %93, float noundef %96, float noundef %94, float noundef %95)
          to label %97 unwind label %.split.us.split.us.split.us

97:                                               ; preds = %.invoke
  invoke void @glVertex2d(double noundef %58, double noundef %75)
          to label %98 unwind label %.split.us.split.us.split.us

98:                                               ; preds = %97
  invoke void @glVertex2d(double noundef %49, double noundef %64)
          to label %99 unwind label %.split.us.split.us.split.us

99:                                               ; preds = %98
  %indvars.iv.next172 = add nuw nsw i64 %indvars.iv171, 1
  %100 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %57) #4
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = icmp slt i64 %indvars.iv.next172, %102
  br i1 %103, label %74, label %._crit_edge.split.us.us.us, !llvm.loop !14

.split.us.split.us.split.us:                      ; preds = %.invoke, %98, %97
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %274

._crit_edge:                                      ; preds = %._crit_edge144.split, %._crit_edge144.split.us.us, %32
  invoke void @glEnd()
          to label %163 unwind label %105

105:                                              ; preds = %271, %._crit_edge161, %163, %._crit_edge, %31, %30, %24
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %274

.lr.ph148.split:                                  ; preds = %.lr.ph148, %._crit_edge144.split
  %indvars.iv168 = phi i64 [ %indvars.iv.next169, %._crit_edge144.split ], [ 1, %.lr.ph148 ]
  %.0123146 = phi double [ %111, %._crit_edge144.split ], [ %41, %.lr.ph148 ]
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv168) #4
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = sitofp i32 %108 to double
  %110 = fdiv double 2.000000e+00, %109
  %111 = fadd double %36, %.0123146
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv168) #4
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = icmp sgt i32 %113, 0
  br i1 %114, label %.lr.ph143, label %._crit_edge144.split

.lr.ph143:                                        ; preds = %.lr.ph148.split
  %115 = fmul double %110, 5.000000e-01
  %116 = fadd double %115, 1.000000e+00
  %117 = add nsw i64 %indvars.iv168, -1
  %118 = fsub double %111, %36
  br label %121

._crit_edge144.split:                             ; preds = %._crit_edge.split, %.lr.ph148.split
  %indvars.iv.next169 = add nuw nsw i64 %indvars.iv168, 1
  %119 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  %120 = icmp ugt i64 %119, %indvars.iv.next169
  br i1 %120, label %.lr.ph148.split, label %._crit_edge, !llvm.loop !9

121:                                              ; preds = %.lr.ph143, %._crit_edge.split
  %indvars.iv165 = phi i64 [ 0, %.lr.ph143 ], [ %indvars.iv.next166, %._crit_edge.split ]
  %.0121140 = phi double [ %116, %.lr.ph143 ], [ %126, %._crit_edge.split ]
  %122 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %117) #4
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %124 = sitofp i32 %123 to double
  %125 = fdiv double 2.000000e+00, %124
  %126 = fsub double %.0121140, %110
  %127 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %117) #4
  %128 = load i32, ptr %127, align 4, !tbaa !5
  %129 = icmp sgt i32 %128, 0
  br i1 %129, label %.lr.ph, label %._crit_edge.split

.lr.ph:                                           ; preds = %121
  %130 = fmul double %125, 5.000000e-01
  %131 = fadd double %130, 1.000000e+00
  br label %136

._crit_edge.split:                                ; preds = %158, %121
  %indvars.iv.next166 = add nuw nsw i64 %indvars.iv165, 1
  %132 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv168) #4
  %133 = load i32, ptr %132, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = icmp slt i64 %indvars.iv.next166, %134
  br i1 %135, label %121, label %._crit_edge144.split, !llvm.loop !11

136:                                              ; preds = %.lr.ph, %158
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %158 ]
  %.0120138 = phi double [ %131, %.lr.ph ], [ %137, %158 ]
  %137 = fsub double %.0120138, %125
  %138 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_IdSaIdEESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %indvars.iv168) #4
  %139 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %138, i64 noundef %indvars.iv165) #4
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %139, i64 noundef %indvars.iv) #4
  %141 = load double, ptr %140, align 8, !tbaa !12
  %142 = fcmp ult double %141, 0.000000e+00
  %143 = fptrunc double %141 to float
  br i1 %142, label %148, label %144

144:                                              ; preds = %136
  %145 = fadd double %141, -1.000000e+00
  %146 = fcmp olt double %145, 0.000000e+00
  %.0117 = select i1 %146, double 0.000000e+00, double %145
  br label %.invoke187

.split:                                           ; preds = %.invoke187, %157, %156
  %147 = landingpad { ptr, i32 }
          cleanup
  br label %274

148:                                              ; preds = %136
  %149 = fsub double -1.000000e+00, %141
  %150 = fcmp olt double %149, 0.000000e+00
  %.1118 = select i1 %150, double 0.000000e+00, double %149
  %151 = fneg float %143
  br label %.invoke187

.invoke187:                                       ; preds = %144, %148
  %152 = phi float [ 0.000000e+00, %148 ], [ 1.000000e+00, %144 ]
  %.in = phi double [ %.1118, %148 ], [ %.0117, %144 ]
  %153 = phi float [ 1.000000e+00, %148 ], [ 0.000000e+00, %144 ]
  %154 = phi float [ %151, %148 ], [ %143, %144 ]
  %155 = fptrunc double %.in to float
  invoke void @glColor4f(float noundef %152, float noundef %155, float noundef %153, float noundef %154)
          to label %156 unwind label %.split

156:                                              ; preds = %.invoke187
  invoke void @glVertex2d(double noundef %118, double noundef %137)
          to label %157 unwind label %.split

157:                                              ; preds = %156
  invoke void @glVertex2d(double noundef %111, double noundef %126)
          to label %158 unwind label %.split

158:                                              ; preds = %157
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %159 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %117) #4
  %160 = load i32, ptr %159, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = icmp slt i64 %indvars.iv.next, %161
  br i1 %162, label %136, label %._crit_edge.split, !llvm.loop !14

163:                                              ; preds = %._crit_edge
  invoke void @glBegin(i32 noundef 4)
          to label %164 unwind label %105

164:                                              ; preds = %163
  %165 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  %166 = uitofp i64 %165 to double
  %167 = fdiv double %33, %166
  %168 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  %.not162 = icmp eq i64 %168, 0
  br i1 %.not162, label %._crit_edge161, label %.lr.ph160

.lr.ph160:                                        ; preds = %164
  %169 = fmul double %167, 5.000000e-01
  %170 = fsub double %37, %169
  %171 = fmul double %167, 2.500000e-01
  %172 = load double, ptr @NN_OUTLINE_COLOUR_R, align 8
  %173 = fptrunc double %172 to float
  %174 = load double, ptr @NN_OUTLINE_COLOUR_G, align 8
  %175 = fptrunc double %174 to float
  %176 = load double, ptr @NN_OUTLINE_COLOUR_B, align 8
  %177 = fptrunc double %176 to float
  %178 = getelementptr inbounds i8, ptr %6, i64 128
  %179 = getelementptr inbounds i8, ptr %6, i64 152
  %180 = getelementptr inbounds i8, ptr %6, i64 176
  br label %181

._crit_edge161:                                   ; preds = %._crit_edge156, %164
  invoke void @glEnd()
          to label %271 unwind label %105

181:                                              ; preds = %.lr.ph160, %._crit_edge156
  %indvars.iv183 = phi i64 [ 0, %.lr.ph160 ], [ %indvars.iv.next184, %._crit_edge156 ]
  %.1124157 = phi double [ %170, %.lr.ph160 ], [ %186, %._crit_edge156 ]
  %182 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv183) #4
  %183 = load i32, ptr %182, align 4, !tbaa !5
  %184 = sitofp i32 %183 to double
  %185 = fdiv double 2.000000e+00, %184
  %186 = fadd double %167, %.1124157
  %187 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv183) #4
  %188 = load i32, ptr %187, align 4, !tbaa !5
  %189 = icmp sgt i32 %188, 0
  br i1 %189, label %.lr.ph155, label %._crit_edge156

.lr.ph155:                                        ; preds = %181
  %190 = fmul double %185, 5.000000e-01
  %191 = fadd double %190, 1.000000e+00
  %192 = fmul double %185, 2.500000e-01
  %193 = fcmp olt double %171, %192
  %.0115 = select i1 %193, double %171, double %192
  %194 = fptrunc double %186 to float
  %195 = fmul double %.0115, 1.075000e+00
  %196 = fptrunc double %195 to float
  %197 = fptrunc double %.0115 to float
  %198 = fmul double %.0115, 5.000000e-01
  %199 = fptrunc double %198 to float
  br label %202

._crit_edge156:                                   ; preds = %266, %181
  %indvars.iv.next184 = add nuw nsw i64 %indvars.iv183, 1
  %200 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  %201 = icmp ugt i64 %200, %indvars.iv.next184
  br i1 %201, label %181, label %._crit_edge161, !llvm.loop !15

202:                                              ; preds = %.lr.ph155, %266
  %indvars.iv180 = phi i64 [ 0, %.lr.ph155 ], [ %indvars.iv.next181, %266 ]
  %.1122152 = phi double [ %191, %.lr.ph155 ], [ %203, %266 ]
  %203 = fsub double %.1122152, %185
  invoke void @glColor4f(float noundef %173, float noundef %175, float noundef %177, float noundef 1.000000e+00)
          to label %204 unwind label %218

204:                                              ; preds = %202
  %205 = fptrunc double %203 to float
  invoke void @_Z15drawPartEllipseffffdd(float noundef %194, float noundef %205, float noundef %196, float noundef %196, double noundef 0.000000e+00, double noundef 3.600000e+02)
          to label %206 unwind label %218

206:                                              ; preds = %204
  br i1 %20, label %207, label %220

207:                                              ; preds = %206
  %208 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %179, i64 noundef %indvars.iv183) #4
  %209 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %208, i64 noundef %indvars.iv180) #4
  %210 = load double, ptr %209, align 8, !tbaa !12
  %211 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %179, i64 noundef %indvars.iv183) #4
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %211, i64 noundef %indvars.iv180) #4
  %213 = load double, ptr %212, align 8, !tbaa !12
  %214 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %179, i64 noundef %indvars.iv183) #4
  %215 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %214, i64 noundef %indvars.iv180) #4
  %216 = load double, ptr %215, align 8, !tbaa !12
  %217 = fptrunc double %216 to float
  br label %.invoke189

218:                                              ; preds = %.invoke189, %.invoke188, %265, %250, %204, %202
  %219 = landingpad { ptr, i32 }
          cleanup
  br label %274

220:                                              ; preds = %206
  %221 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %178, i64 noundef %indvars.iv183) #4
  %222 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %221, i64 noundef %indvars.iv180) #4
  %223 = load double, ptr %222, align 8, !tbaa !12
  %224 = fcmp ult double %223, 0.000000e+00
  %225 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %178, i64 noundef %indvars.iv183) #4
  %226 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %225, i64 noundef %indvars.iv180) #4
  %227 = load double, ptr %226, align 8, !tbaa !12
  br i1 %224, label %236, label %228

228:                                              ; preds = %220
  %229 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %178, i64 noundef %indvars.iv183) #4
  %230 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %229, i64 noundef %indvars.iv180) #4
  %231 = load double, ptr %230, align 8, !tbaa !12
  %232 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %178, i64 noundef %indvars.iv183) #4
  %233 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %232, i64 noundef %indvars.iv180) #4
  %234 = load double, ptr %233, align 8, !tbaa !12
  %235 = fptrunc double %234 to float
  br label %.invoke189

236:                                              ; preds = %220
  %237 = fmul double %227, -5.000000e-01
  %238 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %178, i64 noundef %indvars.iv183) #4
  %239 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %238, i64 noundef %indvars.iv180) #4
  %240 = load double, ptr %239, align 8, !tbaa !12
  %241 = fmul double %240, -5.000000e-01
  %242 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %178, i64 noundef %indvars.iv183) #4
  %243 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %242, i64 noundef %indvars.iv180) #4
  %244 = load double, ptr %243, align 8, !tbaa !12
  %245 = fptrunc double %244 to float
  %246 = fneg float %245
  br label %.invoke189

.invoke189:                                       ; preds = %207, %228, %236
  %.in191 = phi double [ %237, %236 ], [ %227, %228 ], [ %210, %207 ]
  %.in192 = phi double [ %241, %236 ], [ %231, %228 ], [ %213, %207 ]
  %247 = phi float [ %246, %236 ], [ %235, %228 ], [ %217, %207 ]
  %248 = fptrunc double %.in192 to float
  %249 = fptrunc double %.in191 to float
  invoke void @glColor4f(float noundef %249, float noundef %248, float noundef %247, float noundef 1.000000e+00)
          to label %250 unwind label %218

250:                                              ; preds = %.invoke189
  invoke void @_Z15drawPartEllipseffffdd(float noundef %194, float noundef %205, float noundef %197, float noundef %197, double noundef 0.000000e+00, double noundef 3.600000e+02)
          to label %251 unwind label %218

251:                                              ; preds = %250
  %252 = load i32, ptr %3, align 4, !tbaa !5
  %.not134 = icmp eq i32 %252, -1
  br i1 %.not134, label %266, label %.invoke188

.invoke188:                                       ; preds = %251
  %253 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %180, i64 noundef %indvars.iv183) #4
  %254 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %253, i64 noundef %indvars.iv180) #4
  %255 = load double, ptr %254, align 8, !tbaa !12
  %256 = fcmp ult double %255, 0.000000e+00
  %257 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %180, i64 noundef %indvars.iv183) #4
  %258 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %257, i64 noundef %indvars.iv180) #4
  %259 = load double, ptr %258, align 8, !tbaa !12
  %260 = fptrunc double %259 to float
  %261 = fneg float %260
  %262 = select i1 %256, float 0.000000e+00, float 1.000000e+00
  %263 = select i1 %256, float 1.000000e+00, float 0.000000e+00
  %264 = select i1 %256, float %261, float %260
  invoke void @glColor4f(float noundef %262, float noundef 0.000000e+00, float noundef %263, float noundef %264)
          to label %265 unwind label %218

265:                                              ; preds = %.invoke188
  invoke void @_Z15drawPartEllipseffffdd(float noundef %194, float noundef %205, float noundef %199, float noundef %199, double noundef 0.000000e+00, double noundef 3.600000e+02)
          to label %266 unwind label %218

266:                                              ; preds = %251, %265
  %indvars.iv.next181 = add nuw nsw i64 %indvars.iv180, 1
  %267 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv183) #4
  %268 = load i32, ptr %267, align 4, !tbaa !5
  %269 = sext i32 %268 to i64
  %270 = icmp slt i64 %indvars.iv.next181, %269
  br i1 %270, label %202, label %._crit_edge156, !llvm.loop !16

271:                                              ; preds = %._crit_edge161
  invoke void @glDisable(i32 noundef 3042)
          to label %272 unwind label %105

272:                                              ; preds = %271
  call void @_ZN16ctrNeuralNetworkD2Ev(ptr noundef nonnull align 8 dereferenceable(200) %6) #4
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %6) #4
  br label %273

273:                                              ; preds = %5, %272
  ret void

274:                                              ; preds = %.split, %.split.us.split.us.split.us, %105, %218, %17
  %.pn.pn = phi { ptr, i32 } [ %18, %17 ], [ %219, %218 ], [ %106, %105 ], [ %147, %.split ], [ %104, %.split.us.split.us.split.us ]
  call void @_ZN16ctrNeuralNetworkD2Ev(ptr noundef nonnull align 8 dereferenceable(200) %6) #4
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %6) #4
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIdSaIdEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

declare void @_ZN16ctrNeuralNetworkC1Ev(ptr noundef nonnull align 8 dereferenceable(200)) unnamed_addr #3

declare void @_ZN16ctrNeuralNetwork9setValuesERSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

declare void @_ZN16ctrNeuralNetwork14calcImportanceEii(ptr noundef nonnull align 8 dereferenceable(200), i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @glEnable(i32 noundef) local_unnamed_addr #3

declare void @glBlendFunc(i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @glBegin(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_IdSaIdEESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

declare void @glColor4f(float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #3

declare void @glVertex2d(double noundef, double noundef) local_unnamed_addr #3

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

declare void @glEnd() local_unnamed_addr #3

declare void @_Z15drawPartEllipseffffdd(float noundef, float noundef, float noundef, float noundef, double noundef, double noundef) local_unnamed_addr #3

declare void @glDisable(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN16ctrNeuralNetworkD2Ev(ptr noundef nonnull align 8 dereferenceable(200)) unnamed_addr #1 align 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 = { 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 #2 = { mustprogress 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 = { nounwind }

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass