; LLVM IR from BrunoLevy/learn-fpga :: LiteX/software/Tagl/Lib (peng_555)

; 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.GPolygon = type { i32, [100 x ptr] }
%class.Mug = type { %class.GVertex, %class.GVertex }
%class.GVertex = type { %class.GVertexAttributes, i32, i32, %class.GVector, %class.GVector, %class.GVector, %class.GVector, %class.GVector, %class.Flags }
%class.GVertexAttributes = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%class.GVector = type { [4 x %class.GCoord] }
%class.GCoord = type { float }
%class.Flags = type { i32 }

@_ZN13PolygonEngine3_p1E = external global %class.GPolygon, align 8
@_ZN13PolygonEngine4_mugE = external global [1024 x %class.Mug], align 16
@_ZN16GraphicComponent10_graph_memE = external global ptr, align 8
@_ZN16GraphicComponent15_bytes_per_lineE = external global i32, align 4
@_ZN16GraphicProcessor2D4E = external global [16 x i32], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN17PolygonEngine_55514FillPoly_rgb_DEP17GVertexAttributes(ptr noundef %0) #0 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %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
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  store i32 1000, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  store i32 -1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %43 = load ptr, ptr %2, align 8, !tbaa !5
  %44 = getelementptr inbounds %class.GVertexAttributes, ptr %43, i32 0, i32 2
  %45 = load i32, ptr %44, align 4, !tbaa !11
  %46 = icmp slt i32 %45, 248
  br i1 %46, label %47, label %51

47:                                               ; preds = %1
  %48 = load ptr, ptr %2, align 8, !tbaa !5
  %49 = getelementptr inbounds %class.GVertexAttributes, ptr %48, i32 0, i32 2
  %50 = load i32, ptr %49, align 4, !tbaa !11
  br label %52

51:                                               ; preds = %1
  br label %52

52:                                               ; preds = %51, %47
  %53 = phi i32 [ %50, %47 ], [ 248, %51 ]
  %54 = shl i32 %53, 1
  store i32 %54, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  %55 = load ptr, ptr %2, align 8, !tbaa !5
  %56 = getelementptr inbounds %class.GVertexAttributes, ptr %55, i32 0, i32 3
  %57 = load i32, ptr %56, align 4, !tbaa !13
  %58 = icmp slt i32 %57, 248
  br i1 %58, label %59, label %63

59:                                               ; preds = %52
  %60 = load ptr, ptr %2, align 8, !tbaa !5
  %61 = getelementptr inbounds %class.GVertexAttributes, ptr %60, i32 0, i32 3
  %62 = load i32, ptr %61, align 4, !tbaa !13
  br label %64

63:                                               ; preds = %52
  br label %64

64:                                               ; preds = %63, %59
  %65 = phi i32 [ %62, %59 ], [ 248, %63 ]
  %66 = shl i32 %65, 1
  store i32 %66, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %67 = load ptr, ptr %2, align 8, !tbaa !5
  %68 = getelementptr inbounds %class.GVertexAttributes, ptr %67, i32 0, i32 4
  %69 = load i32, ptr %68, align 4, !tbaa !14
  %70 = icmp slt i32 %69, 248
  br i1 %70, label %71, label %75

71:                                               ; preds = %64
  %72 = load ptr, ptr %2, align 8, !tbaa !5
  %73 = getelementptr inbounds %class.GVertexAttributes, ptr %72, i32 0, i32 4
  %74 = load i32, ptr %73, align 4, !tbaa !14
  br label %76

75:                                               ; preds = %64
  br label %76

76:                                               ; preds = %75, %71
  %77 = phi i32 [ %74, %71 ], [ 248, %75 ]
  %78 = shl i32 %77, 1
  store i32 %78, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %79 = load i32, ptr %13, align 4, !tbaa !9
  %80 = and i32 %79, 15
  store i32 %80, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %81 = load i32, ptr %14, align 4, !tbaa !9
  %82 = and i32 %81, 15
  store i32 %82, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  %83 = load i32, ptr %15, align 4, !tbaa !9
  %84 = and i32 %83, 15
  store i32 %84, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  %85 = load i32, ptr %13, align 4, !tbaa !9
  %86 = lshr i32 %85, 4
  store i32 %86, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  %87 = load i32, ptr %14, align 4, !tbaa !9
  %88 = lshr i32 %87, 4
  store i32 %88, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  %89 = load i32, ptr %15, align 4, !tbaa !9
  %90 = lshr i32 %89, 4
  store i32 %90, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #3
  %91 = call noundef i32 @_ZN8GPolygon4SizeEv(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E)
  %92 = icmp slt i32 %91, 2
  br i1 %92, label %93, label %94

93:                                               ; preds = %76
  store i32 1, ptr %33, align 4
  br label %463

94:                                               ; preds = %76
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %95

95:                                               ; preds = %189, %94
  %96 = load i32, ptr %5, align 4, !tbaa !9
  %97 = call noundef i32 @_ZN8GPolygon4SizeEv(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E)
  %98 = icmp slt i32 %96, %97
  br i1 %98, label %99, label %192

99:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #3
  %100 = load i32, ptr %5, align 4, !tbaa !9
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %34, align 4, !tbaa !9
  %102 = load i32, ptr %34, align 4, !tbaa !9
  %103 = call noundef i32 @_ZN8GPolygon4SizeEv(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E)
  %104 = icmp eq i32 %102, %103
  br i1 %104, label %105, label %106

105:                                              ; preds = %99
  store i32 0, ptr %34, align 4, !tbaa !9
  br label %106

106:                                              ; preds = %105, %99
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #3
  %107 = load i32, ptr %34, align 4, !tbaa !9
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %35, align 4, !tbaa !9
  %109 = load i32, ptr %35, align 4, !tbaa !9
  %110 = call noundef i32 @_ZN8GPolygon4SizeEv(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E)
  %111 = icmp eq i32 %109, %110
  br i1 %111, label %112, label %113

112:                                              ; preds = %106
  store i32 0, ptr %35, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %112, %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #3
  %114 = load i32, ptr %5, align 4, !tbaa !9
  %115 = call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %114)
  %116 = getelementptr inbounds %class.GVertex, ptr %115, i32 0, i32 1
  %117 = load i32, ptr %116, align 4, !tbaa !15
  %118 = load i32, ptr %34, align 4, !tbaa !9
  %119 = call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %118)
  %120 = getelementptr inbounds %class.GVertex, ptr %119, i32 0, i32 1
  %121 = load i32, ptr %120, align 4, !tbaa !15
  %122 = sub nsw i32 %117, %121
  store i32 %122, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #3
  %123 = load i32, ptr %5, align 4, !tbaa !9
  %124 = call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %123)
  %125 = getelementptr inbounds %class.GVertex, ptr %124, i32 0, i32 2
  %126 = load i32, ptr %125, align 4, !tbaa !19
  %127 = load i32, ptr %34, align 4, !tbaa !9
  %128 = call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %127)
  %129 = getelementptr inbounds %class.GVertex, ptr %128, i32 0, i32 2
  %130 = load i32, ptr %129, align 4, !tbaa !19
  %131 = sub nsw i32 %126, %130
  store i32 %131, ptr %37, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #3
  %132 = load i32, ptr %35, align 4, !tbaa !9
  %133 = call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %132)
  %134 = getelementptr inbounds %class.GVertex, ptr %133, i32 0, i32 1
  %135 = load i32, ptr %134, align 4, !tbaa !15
  %136 = load i32, ptr %34, align 4, !tbaa !9
  %137 = call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %136)
  %138 = getelementptr inbounds %class.GVertex, ptr %137, i32 0, i32 1
  %139 = load i32, ptr %138, align 4, !tbaa !15
  %140 = sub nsw i32 %135, %139
  store i32 %140, ptr %38, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #3
  %141 = load i32, ptr %35, align 4, !tbaa !9
  %142 = call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %141)
  %143 = getelementptr inbounds %class.GVertex, ptr %142, i32 0, i32 2
  %144 = load i32, ptr %143, align 4, !tbaa !19
  %145 = load i32, ptr %34, align 4, !tbaa !9
  %146 = call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %145)
  %147 = getelementptr inbounds %class.GVertex, ptr %146, i32 0, i32 2
  %148 = load i32, ptr %147, align 4, !tbaa !19
  %149 = sub nsw i32 %144, %148
  store i32 %149, ptr %39, align 4, !tbaa !9
  %150 = load i32, ptr %36, align 4, !tbaa !9
  %151 = load i32, ptr %39, align 4, !tbaa !9
  %152 = mul nsw i32 %150, %151
  %153 = load i32, ptr %38, align 4, !tbaa !9
  %154 = load i32, ptr %37, align 4, !tbaa !9
  %155 = mul nsw i32 %153, %154
  %156 = sub nsw i32 %152, %155
  %157 = load i32, ptr %10, align 4, !tbaa !9
  %158 = add nsw i32 %157, %156
  store i32 %158, ptr %10, align 4, !tbaa !9
  %159 = load i32, ptr %3, align 4, !tbaa !9
  %160 = load i32, ptr %5, align 4, !tbaa !9
  %161 = call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %160)
  %162 = getelementptr inbounds %class.GVertex, ptr %161, i32 0, i32 2
  %163 = load i32, ptr %162, align 4, !tbaa !19
  %164 = icmp slt i32 %159, %163
  br i1 %164, label %165, label %167

165:                                              ; preds = %113
  %166 = load i32, ptr %3, align 4, !tbaa !9
  br label %172

167:                                              ; preds = %113
  %168 = load i32, ptr %5, align 4, !tbaa !9
  %169 = call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %168)
  %170 = getelementptr inbounds %class.GVertex, ptr %169, i32 0, i32 2
  %171 = load i32, ptr %170, align 4, !tbaa !19
  br label %172

172:                                              ; preds = %167, %165
  %173 = phi i32 [ %166, %165 ], [ %171, %167 ]
  store i32 %173, ptr %3, align 4, !tbaa !9
  %174 = load i32, ptr %4, align 4, !tbaa !9
  %175 = load i32, ptr %5, align 4, !tbaa !9
  %176 = call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %175)
  %177 = getelementptr inbounds %class.GVertex, ptr %176, i32 0, i32 2
  %178 = load i32, ptr %177, align 4, !tbaa !19
  %179 = icmp sgt i32 %174, %178
  br i1 %179, label %180, label %182

180:                                              ; preds = %172
  %181 = load i32, ptr %4, align 4, !tbaa !9
  br label %187

182:                                              ; preds = %172
  %183 = load i32, ptr %5, align 4, !tbaa !9
  %184 = call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %183)
  %185 = getelementptr inbounds %class.GVertex, ptr %184, i32 0, i32 2
  %186 = load i32, ptr %185, align 4, !tbaa !19
  br label %187

187:                                              ; preds = %182, %180
  %188 = phi i32 [ %181, %180 ], [ %186, %182 ]
  store i32 %188, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #3
  br label %189

189:                                              ; preds = %187
  %190 = load i32, ptr %5, align 4, !tbaa !9
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %5, align 4, !tbaa !9
  br label %95, !llvm.loop !20

192:                                              ; preds = %95
  %193 = load i32, ptr %10, align 4, !tbaa !9
  %194 = icmp sgt i32 %193, 0
  %195 = zext i1 %194 to i32
  store i32 %195, ptr %10, align 4, !tbaa !9
  %196 = load i32, ptr %3, align 4, !tbaa !9
  %197 = load i32, ptr %4, align 4, !tbaa !9
  %198 = icmp eq i32 %196, %197
  br i1 %198, label %199, label %200

199:                                              ; preds = %192
  store i32 1, ptr %33, align 4
  br label %463

200:                                              ; preds = %192
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %201

201:                                              ; preds = %356, %200
  %202 = load i32, ptr %5, align 4, !tbaa !9
  %203 = call noundef i32 @_ZN8GPolygon4SizeEv(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E)
  %204 = icmp slt i32 %202, %203
  br i1 %204, label %205, label %359

205:                                              ; preds = %201
  %206 = load i32, ptr %5, align 4, !tbaa !9
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %6, align 4, !tbaa !9
  %208 = load i32, ptr %6, align 4, !tbaa !9
  %209 = call noundef i32 @_ZN8GPolygon4SizeEv(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E)
  %210 = icmp eq i32 %208, %209
  br i1 %210, label %211, label %212

211:                                              ; preds = %205
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %212

212:                                              ; preds = %211, %205
  %213 = load i32, ptr %5, align 4, !tbaa !9
  %214 = call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %213)
  %215 = getelementptr inbounds %class.GVertex, ptr %214, i32 0, i32 2
  %216 = load i32, ptr %215, align 4, !tbaa !19
  %217 = load i32, ptr %6, align 4, !tbaa !9
  %218 = call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %217)
  %219 = getelementptr inbounds %class.GVertex, ptr %218, i32 0, i32 2
  %220 = load i32, ptr %219, align 4, !tbaa !19
  %221 = icmp eq i32 %216, %220
  br i1 %221, label %222, label %223

222:                                              ; preds = %212
  br label %356

223:                                              ; preds = %212
  %224 = load i32, ptr %5, align 4, !tbaa !9
  %225 = call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %224)
  %226 = getelementptr inbounds %class.GVertex, ptr %225, i32 0, i32 2
  %227 = load i32, ptr %226, align 4, !tbaa !19
  store i32 %227, ptr %23, align 4, !tbaa !9
  %228 = load i32, ptr %6, align 4, !tbaa !9
  %229 = call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %228)
  %230 = getelementptr inbounds %class.GVertex, ptr %229, i32 0, i32 2
  %231 = load i32, ptr %230, align 4, !tbaa !19
  store i32 %231, ptr %24, align 4, !tbaa !9
  %232 = load i32, ptr %24, align 4, !tbaa !9
  %233 = load i32, ptr %23, align 4, !tbaa !9
  %234 = sub nsw i32 %232, %233
  store i32 %234, ptr %25, align 4, !tbaa !9
  %235 = load i32, ptr %25, align 4, !tbaa !9
  %236 = icmp sgt i32 %235, 0
  br i1 %236, label %237, label %238

237:                                              ; preds = %223
  br label %243

238:                                              ; preds = %223
  %239 = load i32, ptr %25, align 4, !tbaa !9
  %240 = icmp ne i32 %239, 0
  %241 = zext i1 %240 to i64
  %242 = select i1 %240, i32 -1, i32 0
  br label %243

243:                                              ; preds = %238, %237
  %244 = phi i32 [ 1, %237 ], [ %242, %238 ]
  store i32 %244, ptr %26, align 4, !tbaa !9
  %245 = load i32, ptr %26, align 4, !tbaa !9
  %246 = load i32, ptr %25, align 4, !tbaa !9
  %247 = mul nsw i32 %246, %245
  store i32 %247, ptr %25, align 4, !tbaa !9
  %248 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %248, ptr %22, align 4, !tbaa !9
  %249 = load i32, ptr %5, align 4, !tbaa !9
  %250 = call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %249)
  %251 = getelementptr inbounds %class.GVertex, ptr %250, i32 0, i32 1
  %252 = load i32, ptr %251, align 4, !tbaa !15
  store i32 %252, ptr %28, align 4, !tbaa !9
  %253 = load i32, ptr %6, align 4, !tbaa !9
  %254 = call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %253)
  %255 = getelementptr inbounds %class.GVertex, ptr %254, i32 0, i32 1
  %256 = load i32, ptr %255, align 4, !tbaa !15
  store i32 %256, ptr %29, align 4, !tbaa !9
  %257 = load i32, ptr %29, align 4, !tbaa !9
  %258 = load i32, ptr %28, align 4, !tbaa !9
  %259 = sub nsw i32 %257, %258
  store i32 %259, ptr %30, align 4, !tbaa !9
  %260 = load i32, ptr %30, align 4, !tbaa !9
  %261 = icmp sgt i32 %260, 0
  br i1 %261, label %262, label %263

262:                                              ; preds = %243
  br label %268

263:                                              ; preds = %243
  %264 = load i32, ptr %30, align 4, !tbaa !9
  %265 = icmp ne i32 %264, 0
  %266 = zext i1 %265 to i64
  %267 = select i1 %265, i32 -1, i32 0
  br label %268

268:                                              ; preds = %263, %262
  %269 = phi i32 [ 1, %262 ], [ %267, %263 ]
  store i32 %269, ptr %31, align 4, !tbaa !9
  %270 = load i32, ptr %31, align 4, !tbaa !9
  %271 = load i32, ptr %30, align 4, !tbaa !9
  %272 = mul nsw i32 %271, %270
  store i32 %272, ptr %30, align 4, !tbaa !9
  %273 = load i32, ptr %30, align 4, !tbaa !9
  %274 = shl i32 %273, 1
  %275 = load i32, ptr %25, align 4, !tbaa !9
  %276 = sub nsw i32 %274, %275
  store i32 %276, ptr %32, align 4, !tbaa !9
  %277 = load i32, ptr %28, align 4, !tbaa !9
  store i32 %277, ptr %27, align 4, !tbaa !9
  %278 = load i32, ptr %10, align 4, !tbaa !9
  %279 = load i32, ptr %24, align 4, !tbaa !9
  %280 = load i32, ptr %23, align 4, !tbaa !9
  %281 = icmp sgt i32 %279, %280
  %282 = zext i1 %281 to i32
  %283 = xor i32 %278, %282
  %284 = icmp ne i32 %283, 0
  br i1 %284, label %285, label %320

285:                                              ; preds = %268
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %286

286:                                              ; preds = %316, %285
  %287 = load i32, ptr %7, align 4, !tbaa !9
  %288 = load i32, ptr %25, align 4, !tbaa !9
  %289 = icmp sle i32 %287, %288
  br i1 %289, label %290, label %319

290:                                              ; preds = %286
  %291 = load i32, ptr %27, align 4, !tbaa !9
  %292 = load i32, ptr %22, align 4, !tbaa !9
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds [1024 x %class.Mug], ptr @_ZN13PolygonEngine4_mugE, i64 0, i64 %293
  %295 = getelementptr inbounds %class.Mug, ptr %294, i32 0, i32 1
  %296 = getelementptr inbounds %class.GVertex, ptr %295, i32 0, i32 1
  store i32 %291, ptr %296, align 4, !tbaa !22
  %297 = load i32, ptr %26, align 4, !tbaa !9
  %298 = load i32, ptr %22, align 4, !tbaa !9
  %299 = add nsw i32 %298, %297
  store i32 %299, ptr %22, align 4, !tbaa !9
  br label %300

300:                                              ; preds = %303, %290
  %301 = load i32, ptr %32, align 4, !tbaa !9
  %302 = icmp sge i32 %301, 0
  br i1 %302, label %303, label %311

303:                                              ; preds = %300
  %304 = load i32, ptr %31, align 4, !tbaa !9
  %305 = load i32, ptr %27, align 4, !tbaa !9
  %306 = add nsw i32 %305, %304
  store i32 %306, ptr %27, align 4, !tbaa !9
  %307 = load i32, ptr %25, align 4, !tbaa !9
  %308 = shl i32 %307, 1
  %309 = load i32, ptr %32, align 4, !tbaa !9
  %310 = sub nsw i32 %309, %308
  store i32 %310, ptr %32, align 4, !tbaa !9
  br label %300, !llvm.loop !24

311:                                              ; preds = %300
  %312 = load i32, ptr %30, align 4, !tbaa !9
  %313 = shl i32 %312, 1
  %314 = load i32, ptr %32, align 4, !tbaa !9
  %315 = add nsw i32 %314, %313
  store i32 %315, ptr %32, align 4, !tbaa !9
  br label %316

316:                                              ; preds = %311
  %317 = load i32, ptr %7, align 4, !tbaa !9
  %318 = add nsw i32 %317, 1
  store i32 %318, ptr %7, align 4, !tbaa !9
  br label %286, !llvm.loop !25

319:                                              ; preds = %286
  br label %355

320:                                              ; preds = %268
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %321

321:                                              ; preds = %351, %320
  %322 = load i32, ptr %7, align 4, !tbaa !9
  %323 = load i32, ptr %25, align 4, !tbaa !9
  %324 = icmp sle i32 %322, %323
  br i1 %324, label %325, label %354

325:                                              ; preds = %321
  %326 = load i32, ptr %27, align 4, !tbaa !9
  %327 = load i32, ptr %22, align 4, !tbaa !9
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds [1024 x %class.Mug], ptr @_ZN13PolygonEngine4_mugE, i64 0, i64 %328
  %330 = getelementptr inbounds %class.Mug, ptr %329, i32 0, i32 0
  %331 = getelementptr inbounds %class.GVertex, ptr %330, i32 0, i32 1
  store i32 %326, ptr %331, align 4, !tbaa !26
  %332 = load i32, ptr %26, align 4, !tbaa !9
  %333 = load i32, ptr %22, align 4, !tbaa !9
  %334 = add nsw i32 %333, %332
  store i32 %334, ptr %22, align 4, !tbaa !9
  br label %335

335:                                              ; preds = %338, %325
  %336 = load i32, ptr %32, align 4, !tbaa !9
  %337 = icmp sge i32 %336, 0
  br i1 %337, label %338, label %346

338:                                              ; preds = %335
  %339 = load i32, ptr %31, align 4, !tbaa !9
  %340 = load i32, ptr %27, align 4, !tbaa !9
  %341 = add nsw i32 %340, %339
  store i32 %341, ptr %27, align 4, !tbaa !9
  %342 = load i32, ptr %25, align 4, !tbaa !9
  %343 = shl i32 %342, 1
  %344 = load i32, ptr %32, align 4, !tbaa !9
  %345 = sub nsw i32 %344, %343
  store i32 %345, ptr %32, align 4, !tbaa !9
  br label %335, !llvm.loop !27

346:                                              ; preds = %335
  %347 = load i32, ptr %30, align 4, !tbaa !9
  %348 = shl i32 %347, 1
  %349 = load i32, ptr %32, align 4, !tbaa !9
  %350 = add nsw i32 %349, %348
  store i32 %350, ptr %32, align 4, !tbaa !9
  br label %351

351:                                              ; preds = %346
  %352 = load i32, ptr %7, align 4, !tbaa !9
  %353 = add nsw i32 %352, 1
  store i32 %353, ptr %7, align 4, !tbaa !9
  br label %321, !llvm.loop !28

354:                                              ; preds = %321
  br label %355

355:                                              ; preds = %354, %319
  br label %356

356:                                              ; preds = %355, %222
  %357 = load i32, ptr %5, align 4, !tbaa !9
  %358 = add nsw i32 %357, 1
  store i32 %358, ptr %5, align 4, !tbaa !9
  br label %201, !llvm.loop !29

359:                                              ; preds = %201
  %360 = load ptr, ptr @_ZN16GraphicComponent10_graph_memE, align 8, !tbaa !5
  %361 = load i32, ptr %3, align 4, !tbaa !9
  %362 = load i32, ptr @_ZN16GraphicComponent15_bytes_per_lineE, align 4, !tbaa !9
  %363 = mul nsw i32 %361, %362
  %364 = sext i32 %363 to i64
  %365 = getelementptr inbounds i8, ptr %360, i64 %364
  store ptr %365, ptr %9, align 8, !tbaa !5
  %366 = load i32, ptr %3, align 4, !tbaa !9
  store i32 %366, ptr %22, align 4, !tbaa !9
  br label %367

367:                                              ; preds = %459, %359
  %368 = load i32, ptr %22, align 4, !tbaa !9
  %369 = load i32, ptr %4, align 4, !tbaa !9
  %370 = icmp sle i32 %368, %369
  br i1 %370, label %371, label %462

371:                                              ; preds = %367
  %372 = load i32, ptr %22, align 4, !tbaa !9
  %373 = sext i32 %372 to i64
  %374 = getelementptr inbounds [1024 x %class.Mug], ptr @_ZN13PolygonEngine4_mugE, i64 0, i64 %373
  %375 = getelementptr inbounds %class.Mug, ptr %374, i32 0, i32 0
  %376 = getelementptr inbounds %class.GVertex, ptr %375, i32 0, i32 1
  %377 = load i32, ptr %376, align 4, !tbaa !26
  store i32 %377, ptr %28, align 4, !tbaa !9
  %378 = load i32, ptr %22, align 4, !tbaa !9
  %379 = sext i32 %378 to i64
  %380 = getelementptr inbounds [1024 x %class.Mug], ptr @_ZN13PolygonEngine4_mugE, i64 0, i64 %379
  %381 = getelementptr inbounds %class.Mug, ptr %380, i32 0, i32 1
  %382 = getelementptr inbounds %class.GVertex, ptr %381, i32 0, i32 1
  %383 = load i32, ptr %382, align 4, !tbaa !22
  store i32 %383, ptr %29, align 4, !tbaa !9
  %384 = load i32, ptr %29, align 4, !tbaa !9
  %385 = load i32, ptr %28, align 4, !tbaa !9
  %386 = sub nsw i32 %384, %385
  %387 = add nsw i32 %386, 1
  store i32 %387, ptr %30, align 4, !tbaa !9
  %388 = load i32, ptr %28, align 4, !tbaa !9
  store i32 %388, ptr %27, align 4, !tbaa !9
  %389 = load ptr, ptr %9, align 8, !tbaa !5
  %390 = load i32, ptr %28, align 4, !tbaa !9
  %391 = sext i32 %390 to i64
  %392 = getelementptr inbounds i16, ptr %389, i64 %391
  store ptr %392, ptr %8, align 8, !tbaa !5
  %393 = load i32, ptr %28, align 4, !tbaa !9
  store i32 %393, ptr %27, align 4, !tbaa !9
  br label %394

394:                                              ; preds = %451, %371
  %395 = load i32, ptr %27, align 4, !tbaa !9
  %396 = load i32, ptr %29, align 4, !tbaa !9
  %397 = icmp sle i32 %395, %396
  br i1 %397, label %398, label %454

398:                                              ; preds = %394
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #3
  %399 = load i32, ptr %27, align 4, !tbaa !9
  %400 = and i32 %399, 3
  %401 = load i32, ptr %22, align 4, !tbaa !9
  %402 = and i32 %401, 3
  %403 = shl i32 %402, 2
  %404 = add nsw i32 %400, %403
  %405 = sext i32 %404 to i64
  %406 = getelementptr inbounds [16 x i32], ptr @_ZN16GraphicProcessor2D4E, i64 0, i64 %405
  %407 = load i32, ptr %406, align 4, !tbaa !9
  store i32 %407, ptr %12, align 4, !tbaa !9
  %408 = load i32, ptr %16, align 4, !tbaa !9
  %409 = load i32, ptr %12, align 4, !tbaa !9
  %410 = icmp ugt i32 %408, %409
  br i1 %410, label %411, label %414

411:                                              ; preds = %398
  %412 = load i32, ptr %19, align 4, !tbaa !9
  %413 = add i32 %412, 1
  br label %416

414:                                              ; preds = %398
  %415 = load i32, ptr %19, align 4, !tbaa !9
  br label %416

416:                                              ; preds = %414, %411
  %417 = phi i32 [ %413, %411 ], [ %415, %414 ]
  store i32 %417, ptr %40, align 4, !tbaa !9
  %418 = load i32, ptr %17, align 4, !tbaa !9
  %419 = load i32, ptr %12, align 4, !tbaa !9
  %420 = icmp ugt i32 %418, %419
  br i1 %420, label %421, label %424

421:                                              ; preds = %416
  %422 = load i32, ptr %20, align 4, !tbaa !9
  %423 = add i32 %422, 1
  br label %426

424:                                              ; preds = %416
  %425 = load i32, ptr %20, align 4, !tbaa !9
  br label %426

426:                                              ; preds = %424, %421
  %427 = phi i32 [ %423, %421 ], [ %425, %424 ]
  store i32 %427, ptr %41, align 4, !tbaa !9
  %428 = load i32, ptr %18, align 4, !tbaa !9
  %429 = load i32, ptr %12, align 4, !tbaa !9
  %430 = icmp ugt i32 %428, %429
  br i1 %430, label %431, label %434

431:                                              ; preds = %426
  %432 = load i32, ptr %21, align 4, !tbaa !9
  %433 = add i32 %432, 1
  br label %436

434:                                              ; preds = %426
  %435 = load i32, ptr %21, align 4, !tbaa !9
  br label %436

436:                                              ; preds = %434, %431
  %437 = phi i32 [ %433, %431 ], [ %435, %434 ]
  store i32 %437, ptr %42, align 4, !tbaa !9
  %438 = load i32, ptr %42, align 4, !tbaa !9
  %439 = shl i32 %438, 0
  %440 = load i32, ptr %41, align 4, !tbaa !9
  %441 = shl i32 %440, 5
  %442 = or i32 %439, %441
  %443 = load i32, ptr %40, align 4, !tbaa !9
  %444 = shl i32 %443, 10
  %445 = or i32 %442, %444
  store i32 %445, ptr %11, align 4, !tbaa !9
  %446 = load i32, ptr %11, align 4, !tbaa !9
  %447 = trunc i32 %446 to i16
  %448 = load ptr, ptr %8, align 8, !tbaa !5
  store i16 %447, ptr %448, align 2, !tbaa !30
  %449 = load ptr, ptr %8, align 8, !tbaa !5
  %450 = getelementptr inbounds i16, ptr %449, i32 1
  store ptr %450, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #3
  br label %451

451:                                              ; preds = %436
  %452 = load i32, ptr %27, align 4, !tbaa !9
  %453 = add nsw i32 %452, 1
  store i32 %453, ptr %27, align 4, !tbaa !9
  br label %394, !llvm.loop !32

454:                                              ; preds = %394
  %455 = load ptr, ptr %9, align 8, !tbaa !5
  %456 = load i32, ptr @_ZN16GraphicComponent15_bytes_per_lineE, align 4, !tbaa !9
  %457 = sext i32 %456 to i64
  %458 = getelementptr inbounds i8, ptr %455, i64 %457
  store ptr %458, ptr %9, align 8, !tbaa !5
  br label %459

459:                                              ; preds = %454
  %460 = load i32, ptr %22, align 4, !tbaa !9
  %461 = add nsw i32 %460, 1
  store i32 %461, ptr %22, align 4, !tbaa !9
  br label %367, !llvm.loop !33

462:                                              ; preds = %367
  store i32 0, ptr %33, align 4
  br label %463

463:                                              ; preds = %462, %199, %93
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  %464 = load i32, ptr %33, align 4
  switch i32 %464, label %466 [
    i32 0, label %465
    i32 1, label %465
  ]

465:                                              ; preds = %463, %463
  ret void

466:                                              ; preds = %463
  unreachable
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8GPolygon4SizeEv(ptr noundef nonnull align 8 dereferenceable(808)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808), i32 noundef) #2 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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, !10, i64 8}
!12 = !{!"_ZTS17GVertexAttributes", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32}
!13 = !{!12, !10, i64 12}
!14 = !{!12, !10, i64 16}
!15 = !{!16, !10, i64 36}
!16 = !{!"_ZTS7GVertex", !12, i64 0, !10, i64 36, !10, i64 40, !17, i64 44, !17, i64 60, !17, i64 76, !17, i64 92, !17, i64 108, !18, i64 124}
!17 = !{!"_ZTS7GVector", !7, i64 0}
!18 = !{!"_ZTS5Flags", !10, i64 0}
!19 = !{!16, !10, i64 40}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !10, i64 164}
!23 = !{!"_ZTS3Mug", !16, i64 0, !16, i64 128}
!24 = distinct !{!24, !21}
!25 = distinct !{!25, !21}
!26 = !{!23, !10, i64 36}
!27 = distinct !{!27, !21}
!28 = distinct !{!28, !21}
!29 = distinct !{!29, !21}
!30 = !{!31, !31, i64 0}
!31 = !{!"short", !7, i64 0}
!32 = distinct !{!32, !21}
!33 = distinct !{!33, !21}


; 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.GPolygon = type { i32, [100 x ptr] }
%class.Mug = type { %class.GVertex, %class.GVertex }
%class.GVertex = type { %class.GVertexAttributes, i32, i32, %class.GVector, %class.GVector, %class.GVector, %class.GVector, %class.GVector, %class.Flags }
%class.GVertexAttributes = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%class.GVector = type { [4 x %class.GCoord] }
%class.GCoord = type { float }
%class.Flags = type { i32 }

@_ZN13PolygonEngine3_p1E = external global %class.GPolygon, align 8
@_ZN13PolygonEngine4_mugE = external local_unnamed_addr global [1024 x %class.Mug], align 16
@_ZN16GraphicComponent10_graph_memE = external local_unnamed_addr global ptr, align 8
@_ZN16GraphicComponent15_bytes_per_lineE = external local_unnamed_addr global i32, align 4
@_ZN16GraphicProcessor2D4E = external local_unnamed_addr global [16 x i32], align 16

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN17PolygonEngine_55514FillPoly_rgb_DEP17GVertexAttributes(ptr nocapture noundef readonly %0) local_unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 8
  %3 = load <2 x i32>, ptr %2, align 4, !tbaa !5
  %4 = tail call <2 x i32> @llvm.smin.v2i32(<2 x i32> %3, <2 x i32> <i32 248, i32 248>)
  %5 = shl <2 x i32> %4, <i32 1, i32 1>
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  %7 = load i32, ptr %6, align 4, !tbaa !9
  %8 = tail call i32 @llvm.smin.i32(i32 %7, i32 248)
  %9 = shl i32 %8, 1
  %10 = and <2 x i32> %5, <i32 14, i32 14>
  %11 = and i32 %9, 14
  %12 = lshr <2 x i32> %5, <i32 4, i32 4>
  %13 = lshr i32 %9, 4
  %14 = tail call noundef i32 @_ZN8GPolygon4SizeEv(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E)
  %15 = icmp slt i32 %14, 2
  br i1 %15, label %.loopexit, label %.preheader177

.preheader177:                                    ; preds = %1
  %16 = tail call noundef i32 @_ZN8GPolygon4SizeEv(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E)
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph, label %.preheader176

.lr.ph:                                           ; preds = %.preheader177, %72
  %.0181 = phi i32 [ %63, %72 ], [ 1000, %.preheader177 ]
  %.0135180 = phi i32 [ %73, %72 ], [ -1, %.preheader177 ]
  %.0136179 = phi i32 [ %18, %72 ], [ 0, %.preheader177 ]
  %.0146178 = phi i32 [ %53, %72 ], [ 0, %.preheader177 ]
  %18 = add nuw nsw i32 %.0136179, 1
  %19 = tail call noundef i32 @_ZN8GPolygon4SizeEv(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E)
  %20 = icmp eq i32 %18, %19
  %spec.select170 = select i1 %20, i32 0, i32 %18
  %21 = add nuw nsw i32 %spec.select170, 1
  %22 = tail call noundef i32 @_ZN8GPolygon4SizeEv(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E)
  %23 = icmp eq i32 %21, %22
  %.0142 = select i1 %23, i32 0, i32 %21
  %24 = tail call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %.0136179)
  %25 = getelementptr inbounds i8, ptr %24, i64 36
  %26 = load i32, ptr %25, align 4, !tbaa !11
  %27 = tail call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %spec.select170)
  %28 = getelementptr inbounds i8, ptr %27, i64 36
  %29 = load i32, ptr %28, align 4, !tbaa !11
  %30 = sub nsw i32 %26, %29
  %31 = tail call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %.0136179)
  %32 = getelementptr inbounds i8, ptr %31, i64 40
  %33 = load i32, ptr %32, align 4, !tbaa !15
  %34 = tail call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %spec.select170)
  %35 = getelementptr inbounds i8, ptr %34, i64 40
  %36 = load i32, ptr %35, align 4, !tbaa !15
  %.neg = sub i32 %36, %33
  %37 = tail call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %.0142)
  %38 = getelementptr inbounds i8, ptr %37, i64 36
  %39 = load i32, ptr %38, align 4, !tbaa !11
  %40 = tail call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %spec.select170)
  %41 = getelementptr inbounds i8, ptr %40, i64 36
  %42 = load i32, ptr %41, align 4, !tbaa !11
  %43 = sub nsw i32 %39, %42
  %44 = tail call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %.0142)
  %45 = getelementptr inbounds i8, ptr %44, i64 40
  %46 = load i32, ptr %45, align 4, !tbaa !15
  %47 = tail call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %spec.select170)
  %48 = getelementptr inbounds i8, ptr %47, i64 40
  %49 = load i32, ptr %48, align 4, !tbaa !15
  %50 = sub nsw i32 %46, %49
  %51 = mul nsw i32 %50, %30
  %.neg169 = mul i32 %43, %.neg
  %52 = add i32 %.neg169, %.0146178
  %53 = add i32 %52, %51
  %54 = tail call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %.0136179)
  %55 = getelementptr inbounds i8, ptr %54, i64 40
  %56 = load i32, ptr %55, align 4, !tbaa !15
  %57 = icmp slt i32 %.0181, %56
  br i1 %57, label %62, label %58

58:                                               ; preds = %.lr.ph
  %59 = tail call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %.0136179)
  %60 = getelementptr inbounds i8, ptr %59, i64 40
  %61 = load i32, ptr %60, align 4, !tbaa !15
  br label %62

62:                                               ; preds = %.lr.ph, %58
  %63 = phi i32 [ %61, %58 ], [ %.0181, %.lr.ph ]
  %64 = tail call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %.0136179)
  %65 = getelementptr inbounds i8, ptr %64, i64 40
  %66 = load i32, ptr %65, align 4, !tbaa !15
  %67 = icmp sgt i32 %.0135180, %66
  br i1 %67, label %72, label %68

68:                                               ; preds = %62
  %69 = tail call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %.0136179)
  %70 = getelementptr inbounds i8, ptr %69, i64 40
  %71 = load i32, ptr %70, align 4, !tbaa !15
  br label %72

72:                                               ; preds = %62, %68
  %73 = phi i32 [ %71, %68 ], [ %.0135180, %62 ]
  %74 = tail call noundef i32 @_ZN8GPolygon4SizeEv(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E)
  %75 = icmp slt i32 %18, %74
  br i1 %75, label %.lr.ph, label %._crit_edge, !llvm.loop !16

._crit_edge:                                      ; preds = %72
  %76 = icmp sgt i32 %53, 0
  %77 = icmp eq i32 %63, %73
  br i1 %77, label %.loopexit, label %.preheader176

.preheader176:                                    ; preds = %.preheader177, %._crit_edge
  %.0.lcssa246 = phi i32 [ %63, %._crit_edge ], [ 1000, %.preheader177 ]
  %.0135.lcssa245 = phi i32 [ %73, %._crit_edge ], [ -1, %.preheader177 ]
  %.0146.lcssa244 = phi i1 [ %76, %._crit_edge ], [ false, %.preheader177 ]
  %78 = tail call noundef i32 @_ZN8GPolygon4SizeEv(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E)
  %79 = icmp sgt i32 %78, 0
  br i1 %79, label %.lr.ph211, label %._crit_edge212

.lr.ph211:                                        ; preds = %.preheader176, %.loopexit173
  %.1210 = phi i32 [ %80, %.loopexit173 ], [ 0, %.preheader176 ]
  %80 = add nuw nsw i32 %.1210, 1
  %81 = tail call noundef i32 @_ZN8GPolygon4SizeEv(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E)
  %82 = icmp eq i32 %80, %81
  %spec.select171 = select i1 %82, i32 0, i32 %80
  %83 = tail call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %.1210)
  %84 = getelementptr inbounds i8, ptr %83, i64 40
  %85 = load i32, ptr %84, align 4, !tbaa !15
  %86 = tail call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %spec.select171)
  %87 = getelementptr inbounds i8, ptr %86, i64 40
  %88 = load i32, ptr %87, align 4, !tbaa !15
  %89 = icmp eq i32 %85, %88
  br i1 %89, label %.loopexit173, label %90

90:                                               ; preds = %.lr.ph211
  %91 = tail call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %.1210)
  %92 = getelementptr inbounds i8, ptr %91, i64 40
  %93 = load i32, ptr %92, align 4, !tbaa !15
  %94 = tail call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %spec.select171)
  %95 = getelementptr inbounds i8, ptr %94, i64 40
  %96 = load i32, ptr %95, align 4, !tbaa !15
  %97 = sub i32 %96, %93
  %.not165 = icmp ne i32 %96, %93
  %98 = sext i1 %.not165 to i32
  %.inv = icmp slt i32 %97, 1
  %99 = select i1 %.inv, i32 %98, i32 1
  %100 = mul i32 %99, %97
  %101 = tail call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %.1210)
  %102 = getelementptr inbounds i8, ptr %101, i64 36
  %103 = load i32, ptr %102, align 4, !tbaa !11
  %104 = tail call noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E, i32 noundef %spec.select171)
  %105 = getelementptr inbounds i8, ptr %104, i64 36
  %106 = load i32, ptr %105, align 4, !tbaa !11
  %107 = sub nsw i32 %106, %103
  %.not166 = icmp ne i32 %106, %103
  %108 = sext i1 %.not166 to i32
  %.inv172 = icmp slt i32 %107, 1
  %109 = select i1 %.inv172, i32 %108, i32 1
  %110 = shl i32 %107, 1
  %111 = mul i32 %110, %109
  %112 = sub nsw i32 %111, %100
  %113 = icmp sgt i32 %96, %93
  %114 = xor i1 %.0146.lcssa244, %113
  %.not168204 = icmp slt i32 %100, 0
  br i1 %114, label %.preheader, label %.preheader174

.preheader174:                                    ; preds = %90
  br i1 %.not168204, label %.loopexit173, label %.lr.ph196

.lr.ph196:                                        ; preds = %.preheader174
  %115 = shl nuw i32 %100, 1
  %116 = sext i32 %93 to i64
  %117 = sext i32 %99 to i64
  br label %129

.preheader:                                       ; preds = %90
  br i1 %.not168204, label %.loopexit173, label %.lr.ph209

.lr.ph209:                                        ; preds = %.preheader
  %118 = shl nuw i32 %100, 1
  %119 = sext i32 %93 to i64
  %120 = sext i32 %99 to i64
  br label %121

121:                                              ; preds = %.lr.ph209, %._crit_edge201
  %indvars.iv232 = phi i64 [ %119, %.lr.ph209 ], [ %indvars.iv.next233, %._crit_edge201 ]
  %.0138208 = phi i32 [ 0, %.lr.ph209 ], [ %128, %._crit_edge201 ]
  %.0144207 = phi i32 [ %112, %.lr.ph209 ], [ %127, %._crit_edge201 ]
  %.0147206 = phi i32 [ %103, %.lr.ph209 ], [ %.1148.lcssa, %._crit_edge201 ]
  %122 = getelementptr inbounds [1024 x %class.Mug], ptr @_ZN13PolygonEngine4_mugE, i64 0, i64 %indvars.iv232, i32 1, i32 1
  store i32 %.0147206, ptr %122, align 4, !tbaa !18
  %indvars.iv.next233 = add nsw i64 %indvars.iv232, %120
  %123 = icmp sgt i32 %.0144207, -1
  br i1 %123, label %.lr.ph200, label %._crit_edge201

.lr.ph200:                                        ; preds = %121, %.lr.ph200
  %.1145198 = phi i32 [ %125, %.lr.ph200 ], [ %.0144207, %121 ]
  %.1148197 = phi i32 [ %124, %.lr.ph200 ], [ %.0147206, %121 ]
  %124 = add nsw i32 %.1148197, %109
  %125 = sub nsw i32 %.1145198, %118
  %126 = icmp sgt i32 %125, -1
  br i1 %126, label %.lr.ph200, label %._crit_edge201, !llvm.loop !20

._crit_edge201:                                   ; preds = %.lr.ph200, %121
  %.1148.lcssa = phi i32 [ %.0147206, %121 ], [ %124, %.lr.ph200 ]
  %.1145.lcssa = phi i32 [ %.0144207, %121 ], [ %125, %.lr.ph200 ]
  %127 = add nsw i32 %.1145.lcssa, %111
  %128 = add nuw i32 %.0138208, 1
  %exitcond235.not = icmp eq i32 %.0138208, %100
  br i1 %exitcond235.not, label %.loopexit173, label %121, !llvm.loop !21

129:                                              ; preds = %.lr.ph196, %._crit_edge188
  %indvars.iv = phi i64 [ %116, %.lr.ph196 ], [ %indvars.iv.next, %._crit_edge188 ]
  %.1139195 = phi i32 [ 0, %.lr.ph196 ], [ %136, %._crit_edge188 ]
  %.2194 = phi i32 [ %112, %.lr.ph196 ], [ %135, %._crit_edge188 ]
  %.2149193 = phi i32 [ %103, %.lr.ph196 ], [ %.3150.lcssa, %._crit_edge188 ]
  %130 = getelementptr inbounds [1024 x %class.Mug], ptr @_ZN13PolygonEngine4_mugE, i64 0, i64 %indvars.iv, i32 0, i32 1
  store i32 %.2149193, ptr %130, align 4, !tbaa !22
  %indvars.iv.next = add nsw i64 %indvars.iv, %117
  %131 = icmp sgt i32 %.2194, -1
  br i1 %131, label %.lr.ph187, label %._crit_edge188

.lr.ph187:                                        ; preds = %129, %.lr.ph187
  %.3185 = phi i32 [ %133, %.lr.ph187 ], [ %.2194, %129 ]
  %.3150184 = phi i32 [ %132, %.lr.ph187 ], [ %.2149193, %129 ]
  %132 = add nsw i32 %.3150184, %109
  %133 = sub nsw i32 %.3185, %115
  %134 = icmp sgt i32 %133, -1
  br i1 %134, label %.lr.ph187, label %._crit_edge188, !llvm.loop !23

._crit_edge188:                                   ; preds = %.lr.ph187, %129
  %.3150.lcssa = phi i32 [ %.2149193, %129 ], [ %132, %.lr.ph187 ]
  %.3.lcssa = phi i32 [ %.2194, %129 ], [ %133, %.lr.ph187 ]
  %135 = add nsw i32 %.3.lcssa, %111
  %136 = add nuw i32 %.1139195, 1
  %exitcond.not = icmp eq i32 %.1139195, %100
  br i1 %exitcond.not, label %.loopexit173, label %129, !llvm.loop !24

.loopexit173:                                     ; preds = %._crit_edge188, %._crit_edge201, %.preheader174, %.preheader, %.lr.ph211
  %137 = tail call noundef i32 @_ZN8GPolygon4SizeEv(ptr noundef nonnull align 8 dereferenceable(808) @_ZN13PolygonEngine3_p1E)
  %138 = icmp slt i32 %80, %137
  br i1 %138, label %.lr.ph211, label %._crit_edge212, !llvm.loop !25

._crit_edge212:                                   ; preds = %.loopexit173, %.preheader176
  %.not219 = icmp sgt i32 %.0.lcssa246, %.0135.lcssa245
  br i1 %.not219, label %.loopexit, label %.lr.ph223

.lr.ph223:                                        ; preds = %._crit_edge212
  %139 = load ptr, ptr @_ZN16GraphicComponent10_graph_memE, align 8, !tbaa !26
  %140 = load i32, ptr @_ZN16GraphicComponent15_bytes_per_lineE, align 4, !tbaa !5
  %141 = mul nsw i32 %140, %.0.lcssa246
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds i8, ptr %139, i64 %142
  %144 = sext i32 %140 to i64
  %145 = sext i32 %.0.lcssa246 to i64
  %146 = add i32 %.0135.lcssa245, 1
  %broadcast.splat = shufflevector <2 x i32> %10, <2 x i32> poison, <4 x i32> zeroinitializer
  %broadcast.splat266 = shufflevector <2 x i32> %12, <2 x i32> poison, <4 x i32> zeroinitializer
  %broadcast.splat268 = shufflevector <2 x i32> %10, <2 x i32> poison, <4 x i32> <i32 1, i32 1, i32 1, i32 1>
  %broadcast.splat270 = shufflevector <2 x i32> %12, <2 x i32> poison, <4 x i32> <i32 1, i32 1, i32 1, i32 1>
  %broadcast.splatinsert271 = insertelement <4 x i32> poison, i32 %11, i64 0
  %broadcast.splat272 = shufflevector <4 x i32> %broadcast.splatinsert271, <4 x i32> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert273 = insertelement <4 x i32> poison, i32 %13, i64 0
  %broadcast.splat274 = shufflevector <4 x i32> %broadcast.splatinsert273, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %147

147:                                              ; preds = %.lr.ph223, %._crit_edge218
  %indvar = phi i32 [ 0, %.lr.ph223 ], [ %indvar.next, %._crit_edge218 ]
  %indvars.iv237 = phi i64 [ %145, %.lr.ph223 ], [ %indvars.iv.next238, %._crit_edge218 ]
  %.0141221 = phi ptr [ %143, %.lr.ph223 ], [ %217, %._crit_edge218 ]
  %148 = add i32 %.0.lcssa246, %indvar
  %149 = shl i32 %148, 2
  %150 = and i32 %149, 12
  %151 = getelementptr inbounds [1024 x %class.Mug], ptr @_ZN13PolygonEngine4_mugE, i64 0, i64 %indvars.iv237
  %152 = getelementptr inbounds i8, ptr %151, i64 36
  %153 = load i32, ptr %152, align 4, !tbaa !22
  %154 = getelementptr inbounds i8, ptr %151, i64 164
  %155 = load i32, ptr %154, align 4, !tbaa !18
  %.not164213 = icmp sgt i32 %153, %155
  br i1 %.not164213, label %._crit_edge218, label %.lr.ph217

.lr.ph217:                                        ; preds = %147
  %156 = sext i32 %153 to i64
  %157 = getelementptr inbounds i16, ptr %.0141221, i64 %156
  %158 = trunc nsw i64 %indvars.iv237 to i32
  %159 = shl i32 %158, 2
  %160 = and i32 %159, 12
  %161 = sub i32 %155, %153
  %162 = zext i32 %161 to i64
  %163 = add nuw nsw i64 %162, 1
  %min.iters.check = icmp ult i32 %161, 7
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.scevcheck

vector.scevcheck:                                 ; preds = %.lr.ph217
  %164 = sub i32 %155, %153
  %165 = trunc i32 %153 to i2
  %166 = trunc i32 %164 to i2
  %167 = xor i2 %165, -1
  %168 = icmp ult i2 %167, %166
  %169 = icmp ugt i32 %164, 3
  %170 = or i1 %168, %169
  %171 = and i32 %153, 3
  %172 = or disjoint i32 %150, %171
  %173 = xor i32 %172, -1
  %174 = icmp ugt i32 %164, %173
  %175 = or i1 %170, %174
  br i1 %175, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.scevcheck
  %n.vec = and i64 %163, 8589934588
  %176 = shl nuw nsw i64 %n.vec, 1
  %ind.end = getelementptr i8, ptr %157, i64 %176
  %.cast = trunc i64 %n.vec to i32
  %ind.end261 = add i32 %153, %.cast
  %177 = and i32 %153, 3
  %178 = or disjoint i32 %177, %160
  %179 = zext nneg i32 %178 to i64
  %180 = getelementptr inbounds [16 x i32], ptr @_ZN16GraphicProcessor2D4E, i64 0, i64 %179
  %wide.load = load <4 x i32>, ptr %180, align 4, !tbaa !5
  %181 = icmp ugt <4 x i32> %broadcast.splat, %wide.load
  %182 = zext <4 x i1> %181 to <4 x i32>
  %183 = add nuw nsw <4 x i32> %broadcast.splat266, %182
  %184 = icmp ugt <4 x i32> %broadcast.splat268, %wide.load
  %185 = zext <4 x i1> %184 to <4 x i32>
  %186 = add nuw nsw <4 x i32> %broadcast.splat270, %185
  %187 = icmp ugt <4 x i32> %broadcast.splat272, %wide.load
  %188 = zext <4 x i1> %187 to <4 x i32>
  %189 = add nuw nsw <4 x i32> %broadcast.splat274, %188
  %190 = shl <4 x i32> %186, <i32 5, i32 5, i32 5, i32 5>
  %191 = or <4 x i32> %190, %189
  %192 = shl <4 x i32> %183, <i32 10, i32 10, i32 10, i32 10>
  %193 = or <4 x i32> %191, %192
  %194 = trunc <4 x i32> %193 to <4 x i16>
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = shl i64 %index, 1
  %next.gep = getelementptr i8, ptr %157, i64 %offset.idx
  store <4 x i16> %194, ptr %next.gep, align 2, !tbaa !28
  %index.next = add nuw i64 %index, 4
  %195 = icmp eq i64 %index.next, %n.vec
  br i1 %195, label %middle.block, label %vector.body, !llvm.loop !30

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %163, %n.vec
  br i1 %cmp.n, label %._crit_edge218, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.scevcheck, %.lr.ph217
  %.0140215.ph = phi ptr [ %157, %vector.scevcheck ], [ %157, %.lr.ph217 ], [ %ind.end, %middle.block ]
  %.4214.ph = phi i32 [ %153, %vector.scevcheck ], [ %153, %.lr.ph217 ], [ %ind.end261, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %.0140215 = phi ptr [ %215, %scalar.ph ], [ %.0140215.ph, %scalar.ph.preheader ]
  %.4214 = phi i32 [ %216, %scalar.ph ], [ %.4214.ph, %scalar.ph.preheader ]
  %196 = and i32 %.4214, 3
  %197 = or disjoint i32 %196, %160
  %198 = zext nneg i32 %197 to i64
  %199 = getelementptr inbounds [16 x i32], ptr @_ZN16GraphicProcessor2D4E, i64 0, i64 %198
  %200 = load i32, ptr %199, align 4, !tbaa !5
  %201 = icmp ugt i32 %11, %200
  %202 = zext i1 %201 to i32
  %203 = add nuw nsw i32 %13, %202
  %204 = insertelement <2 x i32> poison, i32 %200, i64 0
  %205 = shufflevector <2 x i32> %204, <2 x i32> poison, <2 x i32> zeroinitializer
  %206 = icmp ugt <2 x i32> %10, %205
  %207 = zext <2 x i1> %206 to <2 x i32>
  %208 = add nuw nsw <2 x i32> %12, %207
  %209 = shl <2 x i32> %208, <i32 10, i32 5>
  %210 = extractelement <2 x i32> %209, i64 1
  %211 = or i32 %210, %203
  %212 = extractelement <2 x i32> %209, i64 0
  %213 = or i32 %211, %212
  %214 = trunc i32 %213 to i16
  store i16 %214, ptr %.0140215, align 2, !tbaa !28
  %215 = getelementptr inbounds i8, ptr %.0140215, i64 2
  %216 = add i32 %.4214, 1
  %exitcond236.not = icmp eq i32 %.4214, %155
  br i1 %exitcond236.not, label %._crit_edge218, label %scalar.ph, !llvm.loop !33

._crit_edge218:                                   ; preds = %scalar.ph, %middle.block, %147
  %217 = getelementptr inbounds i8, ptr %.0141221, i64 %144
  %indvars.iv.next238 = add nsw i64 %indvars.iv237, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next238 to i32
  %exitcond240.not = icmp eq i32 %146, %lftr.wideiv
  %indvar.next = add i32 %indvar, 1
  br i1 %exitcond240.not, label %.loopexit, label %147, !llvm.loop !34

.loopexit:                                        ; preds = %._crit_edge218, %._crit_edge212, %._crit_edge, %1
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8GPolygon4SizeEv(ptr noundef nonnull align 8 dereferenceable(808)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN8GPolygonixEi(ptr noundef nonnull align 8 dereferenceable(808), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i32> @llvm.smin.v2i32(<2 x i32>, <2 x i32>) #2

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 16}
!10 = !{!"_ZTS17GVertexAttributes", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32}
!11 = !{!12, !6, i64 36}
!12 = !{!"_ZTS7GVertex", !10, i64 0, !6, i64 36, !6, i64 40, !13, i64 44, !13, i64 60, !13, i64 76, !13, i64 92, !13, i64 108, !14, i64 124}
!13 = !{!"_ZTS7GVector", !7, i64 0}
!14 = !{!"_ZTS5Flags", !6, i64 0}
!15 = !{!12, !6, i64 40}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !6, i64 164}
!19 = !{!"_ZTS3Mug", !12, i64 0, !12, i64 128}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = !{!19, !6, i64 36}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = !{!27, !27, i64 0}
!27 = !{!"any pointer", !7, i64 0}
!28 = !{!29, !29, i64 0}
!29 = !{!"short", !7, i64 0}
!30 = distinct !{!30, !17, !31, !32}
!31 = !{!"llvm.loop.isvectorized", i32 1}
!32 = !{!"llvm.loop.unroll.runtime.disable"}
!33 = distinct !{!33, !17, !31}
!34 = distinct !{!34, !17}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass