; LLVM IR from tyoma/agge :: src/agge/stroke.ll (ZN4agge6stroke6vertexEPfS1_)

; 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.agge::stroke" = type { %"class.agge::vertex_sequence", %"class.agge::pod_vector.0", ptr, ptr, ptr, ptr, float, i32 }
%"class.agge::vertex_sequence" = type { %"class.agge::pod_vector" }
%"class.agge::pod_vector" = type { ptr, ptr, ptr }
%"class.agge::pod_vector.0" = type { ptr, ptr, ptr }
%"struct.agge::point" = type { float, float }
%"struct.agge::vertex" = type { %"struct.agge::point", float }

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4agge10pod_vectorINS_5pointIfEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN4agge6stroke6vertexEPfS1_(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef %1, ptr noundef %2) #1 align 2 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %14 = load ptr, ptr %5, align 8
  br label %15

15:                                               ; preds = %238, %3
  %16 = call noundef zeroext i1 @_ZN4agge6stroke7prepareEv(ptr noundef nonnull align 8 dereferenceable(88) %14)
  br i1 %16, label %17, label %239

17:                                               ; preds = %15
  %18 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 3
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  %20 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 1
  %21 = call noundef ptr @_ZN4agge10pod_vectorINS_5pointIfEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %20)
  %22 = icmp ne ptr %19, %21
  br i1 %22, label %23, label %47

23:                                               ; preds = %17
  %24 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 3
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = getelementptr inbounds %"struct.agge::point", ptr %25, i32 0, i32 0
  %27 = load float, ptr %26, align 4, !tbaa !16
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  store float %27, ptr %28, align 4, !tbaa !18
  %29 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 3
  %30 = load ptr, ptr %29, align 8, !tbaa !9
  %31 = getelementptr inbounds %"struct.agge::point", ptr %30, i32 0, i32 1
  %32 = load float, ptr %31, align 4, !tbaa !19
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  store float %32, ptr %33, align 4, !tbaa !18
  %34 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 3
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  %36 = getelementptr inbounds %"struct.agge::point", ptr %35, i32 1
  store ptr %36, ptr %34, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %37 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 7
  %38 = load i32, ptr %37, align 4, !tbaa !20
  %39 = and i32 %38, 32
  %40 = icmp ne i32 %39, 0
  %41 = zext i1 %40 to i64
  %42 = select i1 %40, i32 1, i32 2
  store i32 %42, ptr %8, align 4, !tbaa !21
  %43 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 7
  %44 = load i32, ptr %43, align 4, !tbaa !20
  %45 = and i32 %44, -33
  store i32 %45, ptr %43, align 4, !tbaa !20
  %46 = load i32, ptr %8, align 4, !tbaa !21
  store i32 %46, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %240

47:                                               ; preds = %17
  %48 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 1
  call void @_ZN4agge10pod_vectorINS_5pointIfEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %48)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %49 = call noundef ptr @_ZN4agge10pod_vectorINS_6vertexEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %14)
  store ptr %49, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %50 = call noundef ptr @_ZN4agge10pod_vectorINS_6vertexEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14)
  %51 = getelementptr inbounds %"struct.agge::vertex", ptr %50, i64 -1
  store ptr %51, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %52 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 2
  %53 = load ptr, ptr %52, align 8, !tbaa !22
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = icmp eq ptr %53, %54
  br i1 %55, label %56, label %58

56:                                               ; preds = %47
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  br label %62

58:                                               ; preds = %47
  %59 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 2
  %60 = load ptr, ptr %59, align 8, !tbaa !22
  %61 = getelementptr inbounds %"struct.agge::vertex", ptr %60, i64 -1
  br label %62

62:                                               ; preds = %58, %56
  %63 = phi ptr [ %57, %56 ], [ %61, %58 ]
  store ptr %63, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %64 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 2
  %65 = load ptr, ptr %64, align 8, !tbaa !22
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = icmp eq ptr %65, %66
  br i1 %67, label %68, label %70

68:                                               ; preds = %62
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  br label %74

70:                                               ; preds = %62
  %71 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 2
  %72 = load ptr, ptr %71, align 8, !tbaa !22
  %73 = getelementptr inbounds %"struct.agge::vertex", ptr %72, i64 1
  br label %74

74:                                               ; preds = %70, %68
  %75 = phi ptr [ %69, %68 ], [ %73, %70 ]
  store ptr %75, ptr %12, align 8, !tbaa !5
  %76 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 7
  %77 = load i32, ptr %76, align 4, !tbaa !20
  %78 = and i32 %77, 7
  switch i32 %78, label %232 [
    i32 0, label %79
    i32 1, label %105
    i32 2, label %136
    i32 3, label %167
    i32 4, label %171
    i32 5, label %196
    i32 6, label %227
    i32 7, label %231
  ]

79:                                               ; preds = %74
  %80 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 4
  %81 = load ptr, ptr %80, align 8, !tbaa !23
  %82 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 1
  %83 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 6
  %84 = load float, ptr %83, align 8, !tbaa !24
  %85 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 2
  %86 = load ptr, ptr %85, align 8, !tbaa !22
  %87 = getelementptr inbounds %"struct.agge::vertex", ptr %86, i32 0, i32 0
  %88 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 2
  %89 = load ptr, ptr %88, align 8, !tbaa !22
  %90 = getelementptr inbounds %"struct.agge::vertex", ptr %89, i32 0, i32 1
  %91 = load float, ptr %90, align 4, !tbaa !25
  %92 = load ptr, ptr %12, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.agge::vertex", ptr %92, i32 0, i32 0
  %94 = load ptr, ptr %81, align 8, !tbaa !27
  %95 = getelementptr inbounds ptr, ptr %94, i64 2
  %96 = load ptr, ptr %95, align 8
  call void %96(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef nonnull align 8 dereferenceable(24) %82, float noundef %84, ptr noundef nonnull align 4 dereferenceable(8) %87, float noundef %91, ptr noundef nonnull align 4 dereferenceable(8) %93)
  %97 = load ptr, ptr %12, align 8, !tbaa !5
  %98 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 2
  store ptr %97, ptr %98, align 8, !tbaa !22
  %99 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 2
  %100 = load ptr, ptr %99, align 8, !tbaa !22
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  %102 = icmp eq ptr %100, %101
  %103 = zext i1 %102 to i64
  %104 = select i1 %102, i32 4, i32 1
  call void @_ZN4agge6stroke9set_stateEi(ptr noundef nonnull align 8 dereferenceable(88) %14, i32 noundef %104)
  br label %232

105:                                              ; preds = %74
  %106 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 5
  %107 = load ptr, ptr %106, align 8, !tbaa !29
  %108 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 1
  %109 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 6
  %110 = load float, ptr %109, align 8, !tbaa !24
  %111 = load ptr, ptr %11, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.agge::vertex", ptr %111, i32 0, i32 0
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.agge::vertex", ptr %113, i32 0, i32 1
  %115 = load float, ptr %114, align 4, !tbaa !25
  %116 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 2
  %117 = load ptr, ptr %116, align 8, !tbaa !22
  %118 = getelementptr inbounds %"struct.agge::vertex", ptr %117, i32 0, i32 0
  %119 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 2
  %120 = load ptr, ptr %119, align 8, !tbaa !22
  %121 = getelementptr inbounds %"struct.agge::vertex", ptr %120, i32 0, i32 1
  %122 = load float, ptr %121, align 4, !tbaa !25
  %123 = load ptr, ptr %12, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.agge::vertex", ptr %123, i32 0, i32 0
  %125 = load ptr, ptr %107, align 8, !tbaa !27
  %126 = getelementptr inbounds ptr, ptr %125, i64 2
  %127 = load ptr, ptr %126, align 8
  call void %127(ptr noundef nonnull align 8 dereferenceable(8) %107, ptr noundef nonnull align 8 dereferenceable(24) %108, float noundef %110, ptr noundef nonnull align 4 dereferenceable(8) %112, float noundef %115, ptr noundef nonnull align 4 dereferenceable(8) %118, float noundef %122, ptr noundef nonnull align 4 dereferenceable(8) %124)
  %128 = load ptr, ptr %12, align 8, !tbaa !5
  %129 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 2
  store ptr %128, ptr %129, align 8, !tbaa !22
  %130 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 2
  %131 = load ptr, ptr %130, align 8, !tbaa !22
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  %133 = icmp eq ptr %131, %132
  br i1 %133, label %134, label %135

134:                                              ; preds = %105
  call void @_ZN4agge6stroke9set_stateEi(ptr noundef nonnull align 8 dereferenceable(88) %14, i32 noundef 4)
  br label %135

135:                                              ; preds = %134, %105
  br label %232

136:                                              ; preds = %74
  %137 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 5
  %138 = load ptr, ptr %137, align 8, !tbaa !29
  %139 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 1
  %140 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 6
  %141 = load float, ptr %140, align 8, !tbaa !24
  %142 = load ptr, ptr %11, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.agge::vertex", ptr %142, i32 0, i32 0
  %144 = load ptr, ptr %11, align 8, !tbaa !5
  %145 = getelementptr inbounds %"struct.agge::vertex", ptr %144, i32 0, i32 1
  %146 = load float, ptr %145, align 4, !tbaa !25
  %147 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 2
  %148 = load ptr, ptr %147, align 8, !tbaa !22
  %149 = getelementptr inbounds %"struct.agge::vertex", ptr %148, i32 0, i32 0
  %150 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 2
  %151 = load ptr, ptr %150, align 8, !tbaa !22
  %152 = getelementptr inbounds %"struct.agge::vertex", ptr %151, i32 0, i32 1
  %153 = load float, ptr %152, align 4, !tbaa !25
  %154 = load ptr, ptr %12, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.agge::vertex", ptr %154, i32 0, i32 0
  %156 = load ptr, ptr %138, align 8, !tbaa !27
  %157 = getelementptr inbounds ptr, ptr %156, i64 2
  %158 = load ptr, ptr %157, align 8
  call void %158(ptr noundef nonnull align 8 dereferenceable(8) %138, ptr noundef nonnull align 8 dereferenceable(24) %139, float noundef %141, ptr noundef nonnull align 4 dereferenceable(8) %143, float noundef %146, ptr noundef nonnull align 4 dereferenceable(8) %149, float noundef %153, ptr noundef nonnull align 4 dereferenceable(8) %155)
  %159 = load ptr, ptr %12, align 8, !tbaa !5
  %160 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 2
  store ptr %159, ptr %160, align 8, !tbaa !22
  %161 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 2
  %162 = load ptr, ptr %161, align 8, !tbaa !22
  %163 = load ptr, ptr %9, align 8, !tbaa !5
  %164 = icmp eq ptr %162, %163
  br i1 %164, label %165, label %166

165:                                              ; preds = %136
  call void @_ZN4agge6stroke9set_stateEi(ptr noundef nonnull align 8 dereferenceable(88) %14, i32 noundef 3)
  br label %166

166:                                              ; preds = %165, %136
  br label %232

167:                                              ; preds = %74
  %168 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 1
  %169 = call noundef ptr @_ZN4agge10pod_vectorINS_5pointIfEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %168)
  %170 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 3
  store ptr %169, ptr %170, align 8, !tbaa !9
  call void @_ZN4agge6stroke9set_stateEi(ptr noundef nonnull align 8 dereferenceable(88) %14, i32 noundef 37)
  store i32 48, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %236

171:                                              ; preds = %74
  %172 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 4
  %173 = load ptr, ptr %172, align 8, !tbaa !23
  %174 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 1
  %175 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 6
  %176 = load float, ptr %175, align 8, !tbaa !24
  %177 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 2
  %178 = load ptr, ptr %177, align 8, !tbaa !22
  %179 = getelementptr inbounds %"struct.agge::vertex", ptr %178, i32 0, i32 0
  %180 = load ptr, ptr %11, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.agge::vertex", ptr %180, i32 0, i32 1
  %182 = load float, ptr %181, align 4, !tbaa !25
  %183 = load ptr, ptr %11, align 8, !tbaa !5
  %184 = getelementptr inbounds %"struct.agge::vertex", ptr %183, i32 0, i32 0
  %185 = load ptr, ptr %173, align 8, !tbaa !27
  %186 = getelementptr inbounds ptr, ptr %185, i64 2
  %187 = load ptr, ptr %186, align 8
  call void %187(ptr noundef nonnull align 8 dereferenceable(8) %173, ptr noundef nonnull align 8 dereferenceable(24) %174, float noundef %176, ptr noundef nonnull align 4 dereferenceable(8) %179, float noundef %182, ptr noundef nonnull align 4 dereferenceable(8) %184)
  %188 = load ptr, ptr %11, align 8, !tbaa !5
  %189 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 2
  store ptr %188, ptr %189, align 8, !tbaa !22
  %190 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 2
  %191 = load ptr, ptr %190, align 8, !tbaa !22
  %192 = load ptr, ptr %9, align 8, !tbaa !5
  %193 = icmp eq ptr %191, %192
  %194 = zext i1 %193 to i64
  %195 = select i1 %193, i32 6, i32 5
  call void @_ZN4agge6stroke9set_stateEi(ptr noundef nonnull align 8 dereferenceable(88) %14, i32 noundef %195)
  br label %232

196:                                              ; preds = %74
  %197 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 5
  %198 = load ptr, ptr %197, align 8, !tbaa !29
  %199 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 1
  %200 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 6
  %201 = load float, ptr %200, align 8, !tbaa !24
  %202 = load ptr, ptr %12, align 8, !tbaa !5
  %203 = getelementptr inbounds %"struct.agge::vertex", ptr %202, i32 0, i32 0
  %204 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 2
  %205 = load ptr, ptr %204, align 8, !tbaa !22
  %206 = getelementptr inbounds %"struct.agge::vertex", ptr %205, i32 0, i32 1
  %207 = load float, ptr %206, align 4, !tbaa !25
  %208 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 2
  %209 = load ptr, ptr %208, align 8, !tbaa !22
  %210 = getelementptr inbounds %"struct.agge::vertex", ptr %209, i32 0, i32 0
  %211 = load ptr, ptr %11, align 8, !tbaa !5
  %212 = getelementptr inbounds %"struct.agge::vertex", ptr %211, i32 0, i32 1
  %213 = load float, ptr %212, align 4, !tbaa !25
  %214 = load ptr, ptr %11, align 8, !tbaa !5
  %215 = getelementptr inbounds %"struct.agge::vertex", ptr %214, i32 0, i32 0
  %216 = load ptr, ptr %198, align 8, !tbaa !27
  %217 = getelementptr inbounds ptr, ptr %216, i64 2
  %218 = load ptr, ptr %217, align 8
  call void %218(ptr noundef nonnull align 8 dereferenceable(8) %198, ptr noundef nonnull align 8 dereferenceable(24) %199, float noundef %201, ptr noundef nonnull align 4 dereferenceable(8) %203, float noundef %207, ptr noundef nonnull align 4 dereferenceable(8) %210, float noundef %213, ptr noundef nonnull align 4 dereferenceable(8) %215)
  %219 = load ptr, ptr %11, align 8, !tbaa !5
  %220 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 2
  store ptr %219, ptr %220, align 8, !tbaa !22
  %221 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 2
  %222 = load ptr, ptr %221, align 8, !tbaa !22
  %223 = load ptr, ptr %9, align 8, !tbaa !5
  %224 = icmp eq ptr %222, %223
  br i1 %224, label %225, label %226

225:                                              ; preds = %196
  call void @_ZN4agge6stroke9set_stateEi(ptr noundef nonnull align 8 dereferenceable(88) %14, i32 noundef 6)
  br label %226

226:                                              ; preds = %225, %196
  br label %232

227:                                              ; preds = %74
  %228 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 1
  %229 = call noundef ptr @_ZN4agge10pod_vectorINS_5pointIfEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %228)
  %230 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 3
  store ptr %229, ptr %230, align 8, !tbaa !9
  call void @_ZN4agge6stroke9set_stateEi(ptr noundef nonnull align 8 dereferenceable(88) %14, i32 noundef 7)
  store i32 48, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %236

231:                                              ; preds = %74
  store i32 0, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %236

232:                                              ; preds = %226, %171, %166, %135, %79, %74
  %233 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 1
  %234 = call noundef ptr @_ZN4agge10pod_vectorINS_5pointIfEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %233)
  %235 = getelementptr inbounds %"class.agge::stroke", ptr %14, i32 0, i32 3
  store ptr %234, ptr %235, align 8, !tbaa !9
  store i32 0, ptr %13, align 4
  br label %236

236:                                              ; preds = %232, %231, %227, %167
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  %237 = load i32, ptr %13, align 4
  switch i32 %237, label %242 [
    i32 0, label %238
    i32 1, label %240
  ]

238:                                              ; preds = %236
  br label %15, !llvm.loop !30

239:                                              ; preds = %15
  store i32 0, ptr %4, align 4
  br label %240

240:                                              ; preds = %239, %236, %23
  %241 = load i32, ptr %4, align 4
  ret i32 %241

242:                                              ; preds = %236
  unreachable
}

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4agge10pod_vectorINS_5pointIfEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4agge10pod_vectorINS_6vertexEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4agge10pod_vectorINS_6vertexEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4agge6stroke9set_stateEi(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4agge10pod_vectorINS_5pointIfEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

attributes #0 = { 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 #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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, !6, i64 56}
!10 = !{!"_ZTSN4agge6strokeE", !11, i64 0, !13, i64 24, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !14, i64 80, !15, i64 84}
!11 = !{!"_ZTSN4agge15vertex_sequenceE", !12, i64 0}
!12 = !{!"_ZTSN4agge10pod_vectorINS_6vertexEEE", !6, i64 0, !6, i64 8, !6, i64 16}
!13 = !{!"_ZTSN4agge10pod_vectorINS_5pointIfEEEE", !6, i64 0, !6, i64 8, !6, i64 16}
!14 = !{!"float", !7, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !14, i64 0}
!17 = !{!"_ZTSN4agge5pointIfEE", !14, i64 0, !14, i64 4}
!18 = !{!14, !14, i64 0}
!19 = !{!17, !14, i64 4}
!20 = !{!10, !15, i64 84}
!21 = !{!15, !15, i64 0}
!22 = !{!10, !6, i64 48}
!23 = !{!10, !6, i64 64}
!24 = !{!10, !14, i64 80}
!25 = !{!26, !14, i64 8}
!26 = !{!"_ZTSN4agge6vertexE", !17, i64 0, !14, i64 8}
!27 = !{!28, !28, i64 0}
!28 = !{!"vtable pointer", !8, i64 0}
!29 = !{!10, !6, i64 72}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}


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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4agge10pod_vectorINS_5pointIfEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN4agge6stroke6vertexEPfS1_(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr nocapture noundef writeonly %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #1 align 2 {
  %4 = tail call noundef zeroext i1 @_ZN4agge6stroke7prepareEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  br i1 %4, label %.lr.ph, label %.thread

.lr.ph:                                           ; preds = %3
  %5 = getelementptr inbounds i8, ptr %0, i64 56
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = getelementptr inbounds i8, ptr %0, i64 48
  %8 = getelementptr inbounds i8, ptr %0, i64 84
  %9 = getelementptr inbounds i8, ptr %0, i64 72
  %10 = getelementptr inbounds i8, ptr %0, i64 80
  %11 = getelementptr inbounds i8, ptr %0, i64 64
  br label %12

12:                                               ; preds = %.lr.ph, %95
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = tail call noundef ptr @_ZN4agge10pod_vectorINS_5pointIfEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %.not = icmp eq ptr %13, %14
  br i1 %.not, label %25, label %15

15:                                               ; preds = %12
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = load float, ptr %16, align 4, !tbaa !15
  store float %17, ptr %1, align 4, !tbaa !17
  %18 = getelementptr inbounds i8, ptr %16, i64 4
  %19 = load float, ptr %18, align 4, !tbaa !18
  store float %19, ptr %2, align 4, !tbaa !17
  %20 = getelementptr inbounds i8, ptr %16, i64 8
  store ptr %20, ptr %5, align 8, !tbaa !5
  %21 = load i32, ptr %8, align 4, !tbaa !19
  %22 = and i32 %21, 32
  %.not34 = icmp eq i32 %22, 0
  %23 = select i1 %.not34, i32 2, i32 1
  %24 = and i32 %21, -33
  store i32 %24, ptr %8, align 4, !tbaa !19
  br label %.thread

25:                                               ; preds = %12
  tail call void @_ZN4agge10pod_vectorINS_5pointIfEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %26 = tail call noundef ptr @_ZN4agge10pod_vectorINS_6vertexEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %27 = tail call noundef ptr @_ZN4agge10pod_vectorINS_6vertexEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %28 = getelementptr inbounds i8, ptr %27, i64 -12
  %29 = load ptr, ptr %7, align 8, !tbaa !20
  %30 = icmp eq ptr %29, %26
  %31 = getelementptr inbounds i8, ptr %29, i64 -12
  %32 = select i1 %30, ptr %28, ptr %31
  %33 = icmp eq ptr %29, %28
  %34 = getelementptr inbounds i8, ptr %29, i64 12
  %35 = select i1 %33, ptr %26, ptr %34
  %36 = load i32, ptr %8, align 4, !tbaa !19
  %37 = and i32 %36, 7
  switch i32 %37, label %default.unreachable46 [
    i32 0, label %38
    i32 1, label %48
    i32 2, label %59
    i32 3, label %70
    i32 4, label %72
    i32 5, label %82
    i32 6, label %93
    i32 7, label %.thread
  ]

38:                                               ; preds = %25
  %39 = load ptr, ptr %11, align 8, !tbaa !21
  %40 = load float, ptr %10, align 8, !tbaa !22
  %41 = getelementptr inbounds i8, ptr %29, i64 8
  %42 = load float, ptr %41, align 4, !tbaa !23
  %43 = load ptr, ptr %39, align 8, !tbaa !25
  %44 = getelementptr inbounds i8, ptr %43, i64 16
  %45 = load ptr, ptr %44, align 8
  tail call void %45(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(24) %6, float noundef %40, ptr noundef nonnull align 4 dereferenceable(8) %29, float noundef %42, ptr noundef nonnull align 4 dereferenceable(8) %35)
  store ptr %35, ptr %7, align 8, !tbaa !20
  %46 = icmp eq ptr %35, %28
  %47 = select i1 %46, i32 4, i32 1
  br label %.sink.split

48:                                               ; preds = %25
  %49 = load ptr, ptr %9, align 8, !tbaa !27
  %50 = load float, ptr %10, align 8, !tbaa !22
  %51 = getelementptr inbounds i8, ptr %32, i64 8
  %52 = load float, ptr %51, align 4, !tbaa !23
  %53 = getelementptr inbounds i8, ptr %29, i64 8
  %54 = load float, ptr %53, align 4, !tbaa !23
  %55 = load ptr, ptr %49, align 8, !tbaa !25
  %56 = getelementptr inbounds i8, ptr %55, i64 16
  %57 = load ptr, ptr %56, align 8
  tail call void %57(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull align 8 dereferenceable(24) %6, float noundef %50, ptr noundef nonnull align 4 dereferenceable(8) %32, float noundef %52, ptr noundef nonnull align 4 dereferenceable(8) %29, float noundef %54, ptr noundef nonnull align 4 dereferenceable(8) %35)
  store ptr %35, ptr %7, align 8, !tbaa !20
  %58 = icmp eq ptr %35, %28
  br i1 %58, label %.sink.split, label %95

59:                                               ; preds = %25
  %60 = load ptr, ptr %9, align 8, !tbaa !27
  %61 = load float, ptr %10, align 8, !tbaa !22
  %62 = getelementptr inbounds i8, ptr %32, i64 8
  %63 = load float, ptr %62, align 4, !tbaa !23
  %64 = getelementptr inbounds i8, ptr %29, i64 8
  %65 = load float, ptr %64, align 4, !tbaa !23
  %66 = load ptr, ptr %60, align 8, !tbaa !25
  %67 = getelementptr inbounds i8, ptr %66, i64 16
  %68 = load ptr, ptr %67, align 8
  tail call void %68(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull align 8 dereferenceable(24) %6, float noundef %61, ptr noundef nonnull align 4 dereferenceable(8) %32, float noundef %63, ptr noundef nonnull align 4 dereferenceable(8) %29, float noundef %65, ptr noundef nonnull align 4 dereferenceable(8) %35)
  store ptr %35, ptr %7, align 8, !tbaa !20
  %69 = icmp eq ptr %35, %26
  br i1 %69, label %.sink.split, label %95

70:                                               ; preds = %25
  %71 = tail call noundef ptr @_ZN4agge10pod_vectorINS_5pointIfEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  store ptr %71, ptr %5, align 8, !tbaa !5
  tail call void @_ZN4agge6stroke9set_stateEi(ptr noundef nonnull align 8 dereferenceable(88) %0, i32 noundef 37)
  br label %.thread

72:                                               ; preds = %25
  %73 = load ptr, ptr %11, align 8, !tbaa !21
  %74 = load float, ptr %10, align 8, !tbaa !22
  %75 = getelementptr inbounds i8, ptr %32, i64 8
  %76 = load float, ptr %75, align 4, !tbaa !23
  %77 = load ptr, ptr %73, align 8, !tbaa !25
  %78 = getelementptr inbounds i8, ptr %77, i64 16
  %79 = load ptr, ptr %78, align 8
  tail call void %79(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef nonnull align 8 dereferenceable(24) %6, float noundef %74, ptr noundef nonnull align 4 dereferenceable(8) %29, float noundef %76, ptr noundef nonnull align 4 dereferenceable(8) %32)
  store ptr %32, ptr %7, align 8, !tbaa !20
  %80 = icmp eq ptr %32, %26
  %81 = select i1 %80, i32 6, i32 5
  br label %.sink.split

82:                                               ; preds = %25
  %83 = load ptr, ptr %9, align 8, !tbaa !27
  %84 = load float, ptr %10, align 8, !tbaa !22
  %85 = getelementptr inbounds i8, ptr %29, i64 8
  %86 = load float, ptr %85, align 4, !tbaa !23
  %87 = getelementptr inbounds i8, ptr %32, i64 8
  %88 = load float, ptr %87, align 4, !tbaa !23
  %89 = load ptr, ptr %83, align 8, !tbaa !25
  %90 = getelementptr inbounds i8, ptr %89, i64 16
  %91 = load ptr, ptr %90, align 8
  tail call void %91(ptr noundef nonnull align 8 dereferenceable(8) %83, ptr noundef nonnull align 8 dereferenceable(24) %6, float noundef %84, ptr noundef nonnull align 4 dereferenceable(8) %35, float noundef %86, ptr noundef nonnull align 4 dereferenceable(8) %29, float noundef %88, ptr noundef nonnull align 4 dereferenceable(8) %32)
  store ptr %32, ptr %7, align 8, !tbaa !20
  %92 = icmp eq ptr %32, %26
  br i1 %92, label %.sink.split, label %95

93:                                               ; preds = %25
  %94 = tail call noundef ptr @_ZN4agge10pod_vectorINS_5pointIfEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  store ptr %94, ptr %5, align 8, !tbaa !5
  tail call void @_ZN4agge6stroke9set_stateEi(ptr noundef nonnull align 8 dereferenceable(88) %0, i32 noundef 7)
  br label %.thread

default.unreachable46:                            ; preds = %25
  unreachable

.sink.split:                                      ; preds = %82, %59, %48, %72, %38
  %.sink = phi i32 [ %47, %38 ], [ %81, %72 ], [ 4, %48 ], [ 3, %59 ], [ 6, %82 ]
  tail call void @_ZN4agge6stroke9set_stateEi(ptr noundef nonnull align 8 dereferenceable(88) %0, i32 noundef %.sink)
  br label %95

95:                                               ; preds = %.sink.split, %48, %59, %82
  %96 = tail call noundef ptr @_ZN4agge10pod_vectorINS_5pointIfEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  store ptr %96, ptr %5, align 8, !tbaa !5
  %97 = tail call noundef zeroext i1 @_ZN4agge6stroke7prepareEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  br i1 %97, label %12, label %.thread

.thread:                                          ; preds = %95, %25, %3, %70, %93, %15
  %.2 = phi i32 [ %23, %15 ], [ 48, %70 ], [ 48, %93 ], [ 0, %3 ], [ 0, %25 ], [ 0, %95 ]
  ret i32 %.2
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4agge10pod_vectorINS_5pointIfEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4agge10pod_vectorINS_6vertexEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4agge10pod_vectorINS_6vertexEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4agge6stroke9set_stateEi(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4agge10pod_vectorINS_5pointIfEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !9, i64 56}
!6 = !{!"_ZTSN4agge6strokeE", !7, i64 0, !12, i64 24, !9, i64 48, !9, i64 56, !9, i64 64, !9, i64 72, !13, i64 80, !14, i64 84}
!7 = !{!"_ZTSN4agge15vertex_sequenceE", !8, i64 0}
!8 = !{!"_ZTSN4agge10pod_vectorINS_6vertexEEE", !9, i64 0, !9, i64 8, !9, i64 16}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSN4agge10pod_vectorINS_5pointIfEEEE", !9, i64 0, !9, i64 8, !9, i64 16}
!13 = !{!"float", !10, i64 0}
!14 = !{!"int", !10, i64 0}
!15 = !{!16, !13, i64 0}
!16 = !{!"_ZTSN4agge5pointIfEE", !13, i64 0, !13, i64 4}
!17 = !{!13, !13, i64 0}
!18 = !{!16, !13, i64 4}
!19 = !{!6, !14, i64 84}
!20 = !{!6, !9, i64 48}
!21 = !{!6, !9, i64 64}
!22 = !{!6, !13, i64 80}
!23 = !{!24, !13, i64 8}
!24 = !{!"_ZTSN4agge6vertexE", !16, i64 0, !13, i64 8}
!25 = !{!26, !26, i64 0}
!26 = !{!"vtable pointer", !11, i64 0}
!27 = !{!6, !9, i64 72}


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