; LLVM IR from achilles288/robot-monitor-graphics :: src/base/internal/line3d_shader.ll (ZN3rmg8internal12Line3DShader4loadEv)

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

%"struct.rmg::Vec3" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float, float }
%"class.rmg::internal::Shader" = type <{ ptr, i32, [4 x i8] }>
%"class.rmg::internal::Line3DShader" = type { %"class.rmg::internal::Shader.base", i32, i32, i32, i32, i32 }
%"class.rmg::internal::Shader.base" = type <{ ptr, i32 }>

@.str = external hidden unnamed_addr constant [38 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [38 x i8], align 1
@_ZN3rmg8internal20glGetUniformLocationE = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZN3rmg8internal17glGenVertexArraysE = external global ptr, align 8
@_ZN3rmg8internal17glBindVertexArrayE = external global ptr, align 8
@_ZN3rmg8internal12glGenBuffersE = external global ptr, align 8
@_ZN3rmg8internal12glBindBufferE = external global ptr, align 8
@_ZN3rmg8internal12glBufferDataE = external global ptr, align 8
@_ZN3rmg8internal25glEnableVertexAttribArrayE = external global ptr, align 8
@_ZN3rmg8internal21glVertexAttribPointerE = external global ptr, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3rmg8internal12Line3DShader4loadEv(ptr noundef nonnull align 8 dereferenceable(32) %0) unnamed_addr #0 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca [9 x [2 x %"struct.rmg::Vec3"]], align 16
  %4 = alloca [8 x [12 x i32]], align 16
  %5 = alloca %"struct.rmg::Vec3", align 4
  %6 = alloca %"struct.rmg::Vec3", align 4
  %7 = alloca i32, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca %"struct.rmg::Vec3", align 4
  %12 = alloca %"struct.rmg::Vec3", align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %13 = load ptr, ptr %2, align 8
  %14 = call noundef i32 @_ZN3rmg8internal6Shader20compileShaderProgramEPKcS3_(ptr noundef @.str, ptr noundef @.str.1)
  %15 = getelementptr inbounds %"class.rmg::internal::Shader", ptr %13, i32 0, i32 1
  store i32 %14, ptr %15, align 8, !tbaa !9
  %16 = load ptr, ptr @_ZN3rmg8internal20glGetUniformLocationE, align 8, !tbaa !5
  %17 = getelementptr inbounds %"class.rmg::internal::Shader", ptr %13, i32 0, i32 1
  %18 = load i32, ptr %17, align 8, !tbaa !9
  %19 = call noundef i32 %16(i32 noundef %18, ptr noundef @.str.2)
  %20 = getelementptr inbounds %"class.rmg::internal::Line3DShader", ptr %13, i32 0, i32 1
  store i32 %19, ptr %20, align 4, !tbaa !12
  %21 = load ptr, ptr @_ZN3rmg8internal20glGetUniformLocationE, align 8, !tbaa !5
  %22 = getelementptr inbounds %"class.rmg::internal::Shader", ptr %13, i32 0, i32 1
  %23 = load i32, ptr %22, align 8, !tbaa !9
  %24 = call noundef i32 %21(i32 noundef %23, ptr noundef @.str.3)
  %25 = getelementptr inbounds %"class.rmg::internal::Line3DShader", ptr %13, i32 0, i32 2
  store i32 %24, ptr %25, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 216, ptr %3) #6
  %26 = getelementptr inbounds [9 x [2 x %"struct.rmg::Vec3"]], ptr %3, i32 0, i32 0, i32 0
  %27 = getelementptr inbounds %"struct.rmg::Vec3", ptr %26, i64 18
  br label %28

28:                                               ; preds = %28, %1
  %29 = phi ptr [ %26, %1 ], [ %30, %28 ]
  call void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %29)
  %30 = getelementptr inbounds %"struct.rmg::Vec3", ptr %29, i64 1
  %31 = icmp eq ptr %30, %27
  br i1 %31, label %32, label %28

32:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 384, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %5) #6
  call void @_ZN3rmg4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %5, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %33 = getelementptr inbounds [9 x [2 x %"struct.rmg::Vec3"]], ptr %3, i64 0, i64 8
  %34 = getelementptr inbounds [2 x %"struct.rmg::Vec3"], ptr %33, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %34, ptr align 4 %5, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %6) #6
  call void @_ZN3rmg4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %6, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %35 = getelementptr inbounds [9 x [2 x %"struct.rmg::Vec3"]], ptr %3, i64 0, i64 8
  %36 = getelementptr inbounds [2 x %"struct.rmg::Vec3"], ptr %35, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 %6, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !17
  br label %37

37:                                               ; preds = %177, %32
  %38 = load i32, ptr %7, align 4, !tbaa !17
  %39 = icmp slt i32 %38, 8
  br i1 %39, label %41, label %40

40:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %180

41:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %42 = load i32, ptr %7, align 4, !tbaa !17
  %43 = sitofp i32 %42 to float
  %44 = fdiv float %43, 8.000000e+00
  %45 = fpext float %44 to double
  %46 = fmul double 0x401921FB54442D18, %45
  %47 = fptrunc double %46 to float
  store float %47, ptr %8, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %48 = load float, ptr %8, align 4, !tbaa !18
  %49 = fpext float %48 to double
  %50 = call double @cos(double noundef %49) #6
  %51 = fmul double 5.000000e-01, %50
  %52 = fptrunc double %51 to float
  store float %52, ptr %9, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %53 = load float, ptr %8, align 4, !tbaa !18
  %54 = fpext float %53 to double
  %55 = call double @sin(double noundef %54) #6
  %56 = fmul double 5.000000e-01, %55
  %57 = fptrunc double %56 to float
  store float %57, ptr %10, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #6
  %58 = load float, ptr %9, align 4, !tbaa !18
  %59 = load float, ptr %10, align 4, !tbaa !18
  call void @_ZN3rmg4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %11, float noundef 0.000000e+00, float noundef %58, float noundef %59)
  %60 = load i32, ptr %7, align 4, !tbaa !17
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [9 x [2 x %"struct.rmg::Vec3"]], ptr %3, i64 0, i64 %61
  %63 = getelementptr inbounds [2 x %"struct.rmg::Vec3"], ptr %62, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %63, ptr align 4 %11, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #6
  %64 = load float, ptr %9, align 4, !tbaa !18
  %65 = load float, ptr %10, align 4, !tbaa !18
  call void @_ZN3rmg4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %12, float noundef 1.000000e+00, float noundef %64, float noundef %65)
  %66 = load i32, ptr %7, align 4, !tbaa !17
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [9 x [2 x %"struct.rmg::Vec3"]], ptr %3, i64 0, i64 %67
  %69 = getelementptr inbounds [2 x %"struct.rmg::Vec3"], ptr %68, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %69, ptr align 4 %12, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #6
  %70 = load i32, ptr %7, align 4, !tbaa !17
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %72, label %97

72:                                               ; preds = %41
  %73 = getelementptr inbounds [8 x [12 x i32]], ptr %4, i64 0, i64 0
  %74 = getelementptr inbounds [12 x i32], ptr %73, i64 0, i64 0
  store i32 14, ptr %74, align 16, !tbaa !17
  %75 = getelementptr inbounds [8 x [12 x i32]], ptr %4, i64 0, i64 0
  %76 = getelementptr inbounds [12 x i32], ptr %75, i64 0, i64 1
  store i32 16, ptr %76, align 4, !tbaa !17
  %77 = getelementptr inbounds [8 x [12 x i32]], ptr %4, i64 0, i64 0
  %78 = getelementptr inbounds [12 x i32], ptr %77, i64 0, i64 2
  store i32 0, ptr %78, align 8, !tbaa !17
  %79 = getelementptr inbounds [8 x [12 x i32]], ptr %4, i64 0, i64 0
  %80 = getelementptr inbounds [12 x i32], ptr %79, i64 0, i64 3
  store i32 15, ptr %80, align 4, !tbaa !17
  %81 = getelementptr inbounds [8 x [12 x i32]], ptr %4, i64 0, i64 0
  %82 = getelementptr inbounds [12 x i32], ptr %81, i64 0, i64 4
  store i32 14, ptr %82, align 16, !tbaa !17
  %83 = getelementptr inbounds [8 x [12 x i32]], ptr %4, i64 0, i64 0
  %84 = getelementptr inbounds [12 x i32], ptr %83, i64 0, i64 5
  store i32 0, ptr %84, align 4, !tbaa !17
  %85 = getelementptr inbounds [8 x [12 x i32]], ptr %4, i64 0, i64 0
  %86 = getelementptr inbounds [12 x i32], ptr %85, i64 0, i64 6
  store i32 0, ptr %86, align 8, !tbaa !17
  %87 = getelementptr inbounds [8 x [12 x i32]], ptr %4, i64 0, i64 0
  %88 = getelementptr inbounds [12 x i32], ptr %87, i64 0, i64 7
  store i32 1, ptr %88, align 4, !tbaa !17
  %89 = getelementptr inbounds [8 x [12 x i32]], ptr %4, i64 0, i64 0
  %90 = getelementptr inbounds [12 x i32], ptr %89, i64 0, i64 8
  store i32 15, ptr %90, align 16, !tbaa !17
  %91 = getelementptr inbounds [8 x [12 x i32]], ptr %4, i64 0, i64 0
  %92 = getelementptr inbounds [12 x i32], ptr %91, i64 0, i64 9
  store i32 15, ptr %92, align 4, !tbaa !17
  %93 = getelementptr inbounds [8 x [12 x i32]], ptr %4, i64 0, i64 0
  %94 = getelementptr inbounds [12 x i32], ptr %93, i64 0, i64 10
  store i32 1, ptr %94, align 8, !tbaa !17
  %95 = getelementptr inbounds [8 x [12 x i32]], ptr %4, i64 0, i64 0
  %96 = getelementptr inbounds [12 x i32], ptr %95, i64 0, i64 11
  store i32 17, ptr %96, align 4, !tbaa !17
  br label %176

97:                                               ; preds = %41
  %98 = load i32, ptr %7, align 4, !tbaa !17
  %99 = sub nsw i32 %98, 1
  %100 = mul nsw i32 %99, 2
  %101 = load i32, ptr %7, align 4, !tbaa !17
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [8 x [12 x i32]], ptr %4, i64 0, i64 %102
  %104 = getelementptr inbounds [12 x i32], ptr %103, i64 0, i64 0
  store i32 %100, ptr %104, align 16, !tbaa !17
  %105 = load i32, ptr %7, align 4, !tbaa !17
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [8 x [12 x i32]], ptr %4, i64 0, i64 %106
  %108 = getelementptr inbounds [12 x i32], ptr %107, i64 0, i64 1
  store i32 16, ptr %108, align 4, !tbaa !17
  %109 = load i32, ptr %7, align 4, !tbaa !17
  %110 = mul nsw i32 %109, 2
  %111 = load i32, ptr %7, align 4, !tbaa !17
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [8 x [12 x i32]], ptr %4, i64 0, i64 %112
  %114 = getelementptr inbounds [12 x i32], ptr %113, i64 0, i64 2
  store i32 %110, ptr %114, align 8, !tbaa !17
  %115 = load i32, ptr %7, align 4, !tbaa !17
  %116 = sub nsw i32 %115, 1
  %117 = mul nsw i32 %116, 2
  %118 = add nsw i32 %117, 1
  %119 = load i32, ptr %7, align 4, !tbaa !17
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [8 x [12 x i32]], ptr %4, i64 0, i64 %120
  %122 = getelementptr inbounds [12 x i32], ptr %121, i64 0, i64 3
  store i32 %118, ptr %122, align 4, !tbaa !17
  %123 = load i32, ptr %7, align 4, !tbaa !17
  %124 = sub nsw i32 %123, 1
  %125 = mul nsw i32 %124, 2
  %126 = load i32, ptr %7, align 4, !tbaa !17
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [8 x [12 x i32]], ptr %4, i64 0, i64 %127
  %129 = getelementptr inbounds [12 x i32], ptr %128, i64 0, i64 4
  store i32 %125, ptr %129, align 16, !tbaa !17
  %130 = load i32, ptr %7, align 4, !tbaa !17
  %131 = mul nsw i32 %130, 2
  %132 = load i32, ptr %7, align 4, !tbaa !17
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [8 x [12 x i32]], ptr %4, i64 0, i64 %133
  %135 = getelementptr inbounds [12 x i32], ptr %134, i64 0, i64 5
  store i32 %131, ptr %135, align 4, !tbaa !17
  %136 = load i32, ptr %7, align 4, !tbaa !17
  %137 = mul nsw i32 %136, 2
  %138 = load i32, ptr %7, align 4, !tbaa !17
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [8 x [12 x i32]], ptr %4, i64 0, i64 %139
  %141 = getelementptr inbounds [12 x i32], ptr %140, i64 0, i64 6
  store i32 %137, ptr %141, align 8, !tbaa !17
  %142 = load i32, ptr %7, align 4, !tbaa !17
  %143 = mul nsw i32 %142, 2
  %144 = add nsw i32 %143, 1
  %145 = load i32, ptr %7, align 4, !tbaa !17
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [8 x [12 x i32]], ptr %4, i64 0, i64 %146
  %148 = getelementptr inbounds [12 x i32], ptr %147, i64 0, i64 7
  store i32 %144, ptr %148, align 4, !tbaa !17
  %149 = load i32, ptr %7, align 4, !tbaa !17
  %150 = sub nsw i32 %149, 1
  %151 = mul nsw i32 %150, 2
  %152 = add nsw i32 %151, 1
  %153 = load i32, ptr %7, align 4, !tbaa !17
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [8 x [12 x i32]], ptr %4, i64 0, i64 %154
  %156 = getelementptr inbounds [12 x i32], ptr %155, i64 0, i64 8
  store i32 %152, ptr %156, align 16, !tbaa !17
  %157 = load i32, ptr %7, align 4, !tbaa !17
  %158 = sub nsw i32 %157, 1
  %159 = mul nsw i32 %158, 2
  %160 = add nsw i32 %159, 1
  %161 = load i32, ptr %7, align 4, !tbaa !17
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [8 x [12 x i32]], ptr %4, i64 0, i64 %162
  %164 = getelementptr inbounds [12 x i32], ptr %163, i64 0, i64 9
  store i32 %160, ptr %164, align 4, !tbaa !17
  %165 = load i32, ptr %7, align 4, !tbaa !17
  %166 = mul nsw i32 %165, 2
  %167 = add nsw i32 %166, 1
  %168 = load i32, ptr %7, align 4, !tbaa !17
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [8 x [12 x i32]], ptr %4, i64 0, i64 %169
  %171 = getelementptr inbounds [12 x i32], ptr %170, i64 0, i64 10
  store i32 %167, ptr %171, align 8, !tbaa !17
  %172 = load i32, ptr %7, align 4, !tbaa !17
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [8 x [12 x i32]], ptr %4, i64 0, i64 %173
  %175 = getelementptr inbounds [12 x i32], ptr %174, i64 0, i64 11
  store i32 17, ptr %175, align 4, !tbaa !17
  br label %176

176:                                              ; preds = %97, %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %177

177:                                              ; preds = %176
  %178 = load i32, ptr %7, align 4, !tbaa !17
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %7, align 4, !tbaa !17
  br label %37, !llvm.loop !20

180:                                              ; preds = %40
  %181 = load ptr, ptr @_ZN3rmg8internal17glGenVertexArraysE, align 8, !tbaa !5
  %182 = getelementptr inbounds %"class.rmg::internal::Line3DShader", ptr %13, i32 0, i32 3
  call void %181(i32 noundef 1, ptr noundef %182)
  %183 = load ptr, ptr @_ZN3rmg8internal17glBindVertexArrayE, align 8, !tbaa !5
  %184 = getelementptr inbounds %"class.rmg::internal::Line3DShader", ptr %13, i32 0, i32 3
  %185 = load i32, ptr %184, align 4, !tbaa !22
  call void %183(i32 noundef %185)
  %186 = load ptr, ptr @_ZN3rmg8internal12glGenBuffersE, align 8, !tbaa !5
  %187 = getelementptr inbounds %"class.rmg::internal::Line3DShader", ptr %13, i32 0, i32 4
  call void %186(i32 noundef 1, ptr noundef %187)
  %188 = load ptr, ptr @_ZN3rmg8internal12glBindBufferE, align 8, !tbaa !5
  %189 = getelementptr inbounds %"class.rmg::internal::Line3DShader", ptr %13, i32 0, i32 4
  %190 = load i32, ptr %189, align 8, !tbaa !23
  call void %188(i32 noundef 34962, i32 noundef %190)
  %191 = load ptr, ptr @_ZN3rmg8internal12glBufferDataE, align 8, !tbaa !5
  %192 = getelementptr inbounds [9 x [2 x %"struct.rmg::Vec3"]], ptr %3, i64 0, i64 0
  %193 = getelementptr inbounds [2 x %"struct.rmg::Vec3"], ptr %192, i64 0, i64 0
  call void %191(i32 noundef 34962, i64 noundef 216, ptr noundef %193, i32 noundef 35044)
  %194 = load ptr, ptr @_ZN3rmg8internal12glGenBuffersE, align 8, !tbaa !5
  %195 = getelementptr inbounds %"class.rmg::internal::Line3DShader", ptr %13, i32 0, i32 5
  call void %194(i32 noundef 1, ptr noundef %195)
  %196 = load ptr, ptr @_ZN3rmg8internal12glBindBufferE, align 8, !tbaa !5
  %197 = getelementptr inbounds %"class.rmg::internal::Line3DShader", ptr %13, i32 0, i32 5
  %198 = load i32, ptr %197, align 4, !tbaa !24
  call void %196(i32 noundef 34963, i32 noundef %198)
  %199 = load ptr, ptr @_ZN3rmg8internal12glBufferDataE, align 8, !tbaa !5
  %200 = getelementptr inbounds [8 x [12 x i32]], ptr %4, i64 0, i64 0
  %201 = getelementptr inbounds [12 x i32], ptr %200, i64 0, i64 0
  call void %199(i32 noundef 34963, i64 noundef 384, ptr noundef %201, i32 noundef 35044)
  %202 = load ptr, ptr @_ZN3rmg8internal25glEnableVertexAttribArrayE, align 8, !tbaa !5
  call void %202(i32 noundef 0)
  %203 = load ptr, ptr @_ZN3rmg8internal12glBindBufferE, align 8, !tbaa !5
  %204 = getelementptr inbounds %"class.rmg::internal::Line3DShader", ptr %13, i32 0, i32 4
  %205 = load i32, ptr %204, align 8, !tbaa !23
  call void %203(i32 noundef 34962, i32 noundef %205)
  %206 = load ptr, ptr @_ZN3rmg8internal21glVertexAttribPointerE, align 8, !tbaa !5
  call void %206(i32 noundef 0, i32 noundef 3, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 12, ptr noundef null)
  call void @llvm.lifetime.end.p0(i64 384, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 216, ptr %3) #6
  ret void
}

declare noundef i32 @_ZN3rmg8internal6Shader20compileShaderProgramEPKcS3_(ptr noundef, ptr noundef) #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3rmg4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #3 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

; Function Attrs: nounwind
declare double @cos(double noundef) #5

; Function Attrs: nounwind
declare double @sin(double noundef) #5

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 = { "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 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !11, i64 8}
!10 = !{!"_ZTSN3rmg8internal6ShaderE", !11, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 12}
!13 = !{!"_ZTSN3rmg8internal12Line3DShaderE", !10, i64 0, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28}
!14 = !{!13, !11, i64 16}
!15 = !{i64 0, i64 12, !16}
!16 = !{!7, !7, i64 0}
!17 = !{!11, !11, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"float", !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!13, !11, i64 20}
!23 = !{!13, !11, i64 24}
!24 = !{!13, !11, i64 28}


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

%"struct.rmg::Vec3" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float, float }

@.str = external hidden unnamed_addr constant [38 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [38 x i8], align 1
@_ZN3rmg8internal20glGetUniformLocationE = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZN3rmg8internal17glGenVertexArraysE = external local_unnamed_addr global ptr, align 8
@_ZN3rmg8internal17glBindVertexArrayE = external local_unnamed_addr global ptr, align 8
@_ZN3rmg8internal12glGenBuffersE = external local_unnamed_addr global ptr, align 8
@_ZN3rmg8internal12glBindBufferE = external local_unnamed_addr global ptr, align 8
@_ZN3rmg8internal12glBufferDataE = external local_unnamed_addr global ptr, align 8
@_ZN3rmg8internal25glEnableVertexAttribArrayE = external local_unnamed_addr global ptr, align 8
@_ZN3rmg8internal21glVertexAttribPointerE = external local_unnamed_addr global ptr, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3rmg8internal12Line3DShader4loadEv(ptr noundef nonnull align 8 dereferenceable(32) %0) unnamed_addr #0 align 2 {
.peel.next:
  %1 = alloca [9 x [2 x %"struct.rmg::Vec3"]], align 16
  %2 = alloca [8 x [12 x i32]], align 16
  %3 = alloca %"struct.rmg::Vec3", align 4
  %4 = alloca %"struct.rmg::Vec3", align 4
  %5 = alloca %"struct.rmg::Vec3", align 4
  %6 = alloca %"struct.rmg::Vec3", align 4
  %7 = tail call noundef i32 @_ZN3rmg8internal6Shader20compileShaderProgramEPKcS3_(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1)
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %7, ptr %8, align 8, !tbaa !5
  %9 = load ptr, ptr @_ZN3rmg8internal20glGetUniformLocationE, align 8, !tbaa !10
  %10 = tail call noundef i32 %9(i32 noundef %7, ptr noundef nonnull @.str.2)
  %11 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %10, ptr %11, align 4, !tbaa !12
  %12 = load ptr, ptr @_ZN3rmg8internal20glGetUniformLocationE, align 8, !tbaa !10
  %13 = load i32, ptr %8, align 8, !tbaa !5
  %14 = tail call noundef i32 %12(i32 noundef %13, ptr noundef nonnull @.str.3)
  %15 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %14, ptr %15, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 216, ptr nonnull %1) #6
  call void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %1)
  %.ptr.1 = getelementptr inbounds i8, ptr %1, i64 12
  call void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %.ptr.1)
  %.ptr.2 = getelementptr inbounds i8, ptr %1, i64 24
  call void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %.ptr.2)
  %.ptr.3 = getelementptr inbounds i8, ptr %1, i64 36
  call void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %.ptr.3)
  %.ptr.4 = getelementptr inbounds i8, ptr %1, i64 48
  call void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %.ptr.4)
  %.ptr.5 = getelementptr inbounds i8, ptr %1, i64 60
  call void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %.ptr.5)
  %.ptr.6 = getelementptr inbounds i8, ptr %1, i64 72
  call void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %.ptr.6)
  %.ptr.7 = getelementptr inbounds i8, ptr %1, i64 84
  call void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %.ptr.7)
  %.ptr.8 = getelementptr inbounds i8, ptr %1, i64 96
  call void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %.ptr.8)
  %.ptr.9 = getelementptr inbounds i8, ptr %1, i64 108
  call void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %.ptr.9)
  %.ptr.10 = getelementptr inbounds i8, ptr %1, i64 120
  call void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %.ptr.10)
  %.ptr.11 = getelementptr inbounds i8, ptr %1, i64 132
  call void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %.ptr.11)
  %.ptr.12 = getelementptr inbounds i8, ptr %1, i64 144
  call void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %.ptr.12)
  %.ptr.13 = getelementptr inbounds i8, ptr %1, i64 156
  call void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %.ptr.13)
  %.ptr.14 = getelementptr inbounds i8, ptr %1, i64 168
  call void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %.ptr.14)
  %.ptr.15 = getelementptr inbounds i8, ptr %1, i64 180
  call void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %.ptr.15)
  %.ptr.16 = getelementptr inbounds i8, ptr %1, i64 192
  call void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %.ptr.16)
  %.ptr.17 = getelementptr inbounds i8, ptr %1, i64 204
  call void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %.ptr.17)
  call void @llvm.lifetime.start.p0(i64 384, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #6
  call void @_ZN3rmg4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %3, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(12) %.ptr.16, ptr noundef nonnull align 4 dereferenceable(12) %3, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #6
  call void @_ZN3rmg4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %4, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %.ptr.17, ptr noundef nonnull align 4 dereferenceable(12) %4, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #6
  call void @_ZN3rmg4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %5, float noundef 0.000000e+00, float noundef 5.000000e-01, float noundef 0.000000e+00)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %5, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #6
  call void @_ZN3rmg4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %6, float noundef 1.000000e+00, float noundef 5.000000e-01, float noundef 0.000000e+00)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %.ptr.1, ptr noundef nonnull align 4 dereferenceable(12) %6, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #6
  %16 = getelementptr inbounds i8, ptr %2, i64 32
  %17 = getelementptr inbounds i8, ptr %2, i64 16
  store <4 x i32> <i32 14, i32 16, i32 0, i32 15>, ptr %2, align 16, !tbaa !17
  store <4 x i32> <i32 14, i32 0, i32 0, i32 1>, ptr %17, align 16, !tbaa !17
  store <4 x i32> <i32 15, i32 15, i32 1, i32 17>, ptr %16, align 16, !tbaa !17
  br label %36

.loopexit:                                        ; preds = %36
  %18 = load ptr, ptr @_ZN3rmg8internal17glGenVertexArraysE, align 8, !tbaa !10
  %19 = getelementptr inbounds i8, ptr %0, i64 20
  call void %18(i32 noundef 1, ptr noundef nonnull %19)
  %20 = load ptr, ptr @_ZN3rmg8internal17glBindVertexArrayE, align 8, !tbaa !10
  %21 = load i32, ptr %19, align 4, !tbaa !18
  call void %20(i32 noundef %21)
  %22 = load ptr, ptr @_ZN3rmg8internal12glGenBuffersE, align 8, !tbaa !10
  %23 = getelementptr inbounds i8, ptr %0, i64 24
  call void %22(i32 noundef 1, ptr noundef nonnull %23)
  %24 = load ptr, ptr @_ZN3rmg8internal12glBindBufferE, align 8, !tbaa !10
  %25 = load i32, ptr %23, align 8, !tbaa !19
  call void %24(i32 noundef 34962, i32 noundef %25)
  %26 = load ptr, ptr @_ZN3rmg8internal12glBufferDataE, align 8, !tbaa !10
  call void %26(i32 noundef 34962, i64 noundef 216, ptr noundef nonnull %1, i32 noundef 35044)
  %27 = load ptr, ptr @_ZN3rmg8internal12glGenBuffersE, align 8, !tbaa !10
  %28 = getelementptr inbounds i8, ptr %0, i64 28
  call void %27(i32 noundef 1, ptr noundef nonnull %28)
  %29 = load ptr, ptr @_ZN3rmg8internal12glBindBufferE, align 8, !tbaa !10
  %30 = load i32, ptr %28, align 4, !tbaa !20
  call void %29(i32 noundef 34963, i32 noundef %30)
  %31 = load ptr, ptr @_ZN3rmg8internal12glBufferDataE, align 8, !tbaa !10
  call void %31(i32 noundef 34963, i64 noundef 384, ptr noundef nonnull %2, i32 noundef 35044)
  %32 = load ptr, ptr @_ZN3rmg8internal25glEnableVertexAttribArrayE, align 8, !tbaa !10
  call void %32(i32 noundef 0)
  %33 = load ptr, ptr @_ZN3rmg8internal12glBindBufferE, align 8, !tbaa !10
  %34 = load i32, ptr %23, align 8, !tbaa !19
  call void %33(i32 noundef 34962, i32 noundef %34)
  %35 = load ptr, ptr @_ZN3rmg8internal21glVertexAttribPointerE, align 8, !tbaa !10
  call void %35(i32 noundef 0, i32 noundef 3, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 12, ptr noundef null)
  call void @llvm.lifetime.end.p0(i64 384, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 216, ptr nonnull %1) #6
  ret void

36:                                               ; preds = %.peel.next, %36
  %indvars.iv = phi i64 [ 1, %.peel.next ], [ %indvars.iv.next, %36 ]
  %37 = trunc nuw nsw i64 %indvars.iv to i32
  %38 = uitofp nneg i32 %37 to float
  %39 = fmul float %38, 1.250000e-01
  %40 = fpext float %39 to double
  %41 = fmul double %40, 0x401921FB54442D18
  %42 = fptrunc double %41 to float
  %43 = fpext float %42 to double
  %44 = call double @cos(double noundef %43) #6
  %45 = fmul double %44, 5.000000e-01
  %46 = fptrunc double %45 to float
  %47 = call double @sin(double noundef %43) #6
  %48 = fmul double %47, 5.000000e-01
  %49 = fptrunc double %48 to float
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #6
  call void @_ZN3rmg4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %5, float noundef 0.000000e+00, float noundef %46, float noundef %49)
  %50 = getelementptr inbounds [9 x [2 x %"struct.rmg::Vec3"]], ptr %1, i64 0, i64 %indvars.iv
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %50, ptr noundef nonnull align 4 dereferenceable(12) %5, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #6
  call void @_ZN3rmg4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %6, float noundef 1.000000e+00, float noundef %46, float noundef %49)
  %51 = getelementptr inbounds i8, ptr %50, i64 12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %51, ptr noundef nonnull align 4 dereferenceable(12) %6, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #6
  %52 = shl nuw nsw i64 %indvars.iv, 1
  %53 = getelementptr inbounds [8 x [12 x i32]], ptr %2, i64 0, i64 %indvars.iv
  %54 = trunc i64 %52 to i32
  %55 = add i32 %54, -2
  store i32 %55, ptr %53, align 16, !tbaa !17
  %56 = getelementptr inbounds i8, ptr %53, i64 4
  store i32 16, ptr %56, align 4, !tbaa !17
  %57 = getelementptr inbounds i8, ptr %53, i64 8
  %58 = trunc nuw nsw i64 %52 to i32
  store i32 %58, ptr %57, align 8, !tbaa !17
  %59 = getelementptr inbounds i8, ptr %53, i64 12
  %60 = trunc i64 %52 to i32
  %61 = add i32 %60, -1
  store i32 %61, ptr %59, align 4, !tbaa !17
  %62 = getelementptr inbounds i8, ptr %53, i64 16
  store i32 %55, ptr %62, align 16, !tbaa !17
  %63 = getelementptr inbounds i8, ptr %53, i64 20
  store i32 %58, ptr %63, align 4, !tbaa !17
  %64 = getelementptr inbounds i8, ptr %53, i64 24
  store i32 %58, ptr %64, align 8, !tbaa !17
  %65 = getelementptr inbounds i8, ptr %53, i64 28
  %66 = trunc i64 %52 to i32
  %67 = or disjoint i32 %66, 1
  store i32 %67, ptr %65, align 4, !tbaa !17
  %68 = getelementptr inbounds i8, ptr %53, i64 32
  store i32 %61, ptr %68, align 16, !tbaa !17
  %69 = getelementptr inbounds i8, ptr %53, i64 36
  store i32 %61, ptr %69, align 4, !tbaa !17
  %70 = getelementptr inbounds i8, ptr %53, i64 40
  store i32 %67, ptr %70, align 8, !tbaa !17
  %71 = getelementptr inbounds i8, ptr %53, i64 44
  store i32 17, ptr %71, align 4, !tbaa !17
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 8
  br i1 %exitcond.not, label %.loopexit, label %36, !llvm.loop !21
}

declare noundef i32 @_ZN3rmg8internal6Shader20compileShaderProgramEPKcS3_(ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3rmg4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @cos(double noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sin(double noundef) local_unnamed_addr #5

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !7, i64 8}
!6 = !{!"_ZTSN3rmg8internal6ShaderE", !7, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !7, i64 12}
!13 = !{!"_ZTSN3rmg8internal12Line3DShaderE", !6, i64 0, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28}
!14 = !{!13, !7, i64 16}
!15 = !{i64 0, i64 12, !16}
!16 = !{!8, !8, i64 0}
!17 = !{!7, !7, i64 0}
!18 = !{!13, !7, i64 20}
!19 = !{!13, !7, i64 24}
!20 = !{!13, !7, i64 28}
!21 = distinct !{!21, !22, !23}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass