; LLVM IR from Dovyski/opengl-demos :: libs/glm-0.9.9.3/test/core/core_type_mat2x3.ll (Z8test_ctrv)

; 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.glm::mat" = type { [2 x %"struct.glm::vec"] }
%"struct.glm::vec" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float, float }
%"struct.glm::vec.2" = type { %union.anon.3 }
%union.anon.3 = type { %struct.anon.4 }
%struct.anon.4 = type { i8, i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<glm::mat<2, 3, float>, std::allocator<glm::mat<2, 3, float>>>::_Vector_impl" }
%"struct.std::_Vector_base<glm::mat<2, 3, float>, std::allocator<glm::mat<2, 3, float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<glm::mat<2, 3, float>, std::allocator<glm::mat<2, 3, float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<glm::mat<2, 3, float>, std::allocator<glm::mat<2, 3, float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::allocator" = type { i8 }

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z8test_ctrv() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"struct.glm::mat", align 4
  %3 = alloca %"struct.glm::vec", align 4
  %4 = alloca %"struct.glm::vec", align 4
  %5 = alloca %"struct.glm::mat", align 4
  %6 = alloca %"struct.glm::mat", align 4
  %7 = alloca %"struct.glm::vec", align 4
  %8 = alloca %"struct.glm::vec", align 4
  %9 = alloca %"struct.glm::vec.2", align 1
  %10 = alloca %"struct.glm::vec.2", align 1
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca %"class.std::initializer_list", align 8
  %13 = alloca [2 x %"struct.glm::mat"], align 4
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::vector", align 8
  %18 = alloca %"class.std::initializer_list", align 8
  %19 = alloca [2 x %"struct.glm::mat"], align 4
  %20 = alloca %"struct.glm::vec", align 4
  %21 = alloca %"struct.glm::vec", align 4
  %22 = alloca %"struct.glm::vec", align 4
  %23 = alloca %"struct.glm::vec", align 4
  %24 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  store i32 0, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %3) #5
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %3, i32 noundef 0, i32 noundef 1, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 12, ptr %4) #5
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %4, i32 noundef 3, i32 noundef 4, i32 noundef 5)
  call void @_ZN3glm3matILi2ELi3EfLNS_9qualifierE0EEC2ERKNS_3vecILi3EfLS1_0EEES6_(ptr noundef nonnull align 4 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %4)
  call void @llvm.lifetime.end.p0(i64 12, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #5
  call void @_ZN3glm3matILi2ELi3EfLNS_9qualifierE0EEC2IiiiiiiEET_T0_T1_T2_T3_T4_(ptr noundef nonnull align 4 dereferenceable(24) %5, i32 noundef 0, i32 noundef 1, i32 noundef 2, i32 noundef 3, i32 noundef 4, i32 noundef 5)
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %7) #5
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %7, i32 noundef 0, i32 noundef 1, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #5
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %8, i32 noundef 3, i32 noundef 4, i32 noundef 5)
  call void @_ZN3glm3matILi2ELi3EfLNS_9qualifierE0EEC2ERKNS_3vecILi3EfLS1_0EEES6_(ptr noundef nonnull align 4 dereferenceable(24) %6, ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %8)
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 2, ptr %9) #5
  %25 = call noundef float @_ZN3glm7epsilonIfEET_v()
  %26 = call i16 @_ZN3glm5equalILi2ELi3EfLNS_9qualifierE0EEENS_3vecIXT_EbXT2_EEERKNS_3matIXT_EXT0_ET1_XT2_EEES8_S5_(ptr noundef nonnull align 4 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(24) %6, float noundef %25)
  %27 = getelementptr inbounds %"struct.glm::vec.2", ptr %9, i32 0, i32 0
  %28 = getelementptr inbounds %union.anon.3, ptr %27, i32 0, i32 0
  store i16 %26, ptr %28, align 1
  %29 = call noundef zeroext i1 @_ZN3glm3allILi2ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(2) %9)
  %30 = zext i1 %29 to i64
  %31 = select i1 %29, i32 0, i32 1
  %32 = load i32, ptr %1, align 4, !tbaa !5
  %33 = add nsw i32 %32, %31
  store i32 %33, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 2, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 2, ptr %10) #5
  %34 = call noundef float @_ZN3glm7epsilonIfEET_v()
  %35 = call i16 @_ZN3glm5equalILi2ELi3EfLNS_9qualifierE0EEENS_3vecIXT_EbXT2_EEERKNS_3matIXT_EXT0_ET1_XT2_EEES8_S5_(ptr noundef nonnull align 4 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(24) %6, float noundef %34)
  %36 = getelementptr inbounds %"struct.glm::vec.2", ptr %10, i32 0, i32 0
  %37 = getelementptr inbounds %union.anon.3, ptr %36, i32 0, i32 0
  store i16 %35, ptr %37, align 1
  %38 = call noundef zeroext i1 @_ZN3glm3allILi2ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(2) %10)
  %39 = zext i1 %38 to i64
  %40 = select i1 %38, i32 0, i32 1
  %41 = load i32, ptr %1, align 4, !tbaa !5
  %42 = add nsw i32 %41, %40
  store i32 %42, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 2, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr %13) #5
  call void @_ZN3glm3matILi2ELi3EfLNS_9qualifierE0EEC2IiiiiiiEET_T0_T1_T2_T3_T4_(ptr noundef nonnull align 4 dereferenceable(24) %13, i32 noundef 0, i32 noundef 1, i32 noundef 2, i32 noundef 3, i32 noundef 4, i32 noundef 5)
  %43 = getelementptr inbounds %"struct.glm::mat", ptr %13, i64 1
  call void @_ZN3glm3matILi2ELi3EfLNS_9qualifierE0EEC2IiiiiiiEET_T0_T1_T2_T3_T4_(ptr noundef nonnull align 4 dereferenceable(24) %43, i32 noundef 0, i32 noundef 1, i32 noundef 2, i32 noundef 3, i32 noundef 4, i32 noundef 5)
  %44 = getelementptr inbounds %"class.std::initializer_list", ptr %12, i32 0, i32 0
  store ptr %13, ptr %44, align 8, !tbaa !9
  %45 = getelementptr inbounds %"class.std::initializer_list", ptr %12, i32 0, i32 1
  store i64 2, ptr %45, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #5
  call void @_ZNSaIN3glm3matILi2ELi3EfLNS_9qualifierE0EEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  %46 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 0
  %47 = load ptr, ptr %46, align 8
  %48 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 1
  %49 = load i64, ptr %48, align 8
  invoke void @_ZNSt6vectorIN3glm3matILi2ELi3EfLNS0_9qualifierE0EEESaIS3_EEC2ESt16initializer_listIS3_ERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr %47, i64 %49, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %50 unwind label %66

50:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIN3glm3matILi2ELi3EfLNS0_9qualifierE0EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #5
  invoke void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %20, i32 noundef 0, i32 noundef 1, i32 noundef 2)
          to label %51 unwind label %70

51:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #5
  invoke void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %21, i32 noundef 4, i32 noundef 5, i32 noundef 6)
          to label %52 unwind label %74

52:                                               ; preds = %51
  invoke void @_ZN3glm3matILi2ELi3EfLNS_9qualifierE0EEC2ERKNS_3vecILi3EfLS1_0EEES6_(ptr noundef nonnull align 4 dereferenceable(24) %19, ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull align 4 dereferenceable(12) %21)
          to label %53 unwind label %74

53:                                               ; preds = %52
  %54 = getelementptr inbounds %"struct.glm::mat", ptr %19, i64 1
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #5
  invoke void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %22, i32 noundef 0, i32 noundef 1, i32 noundef 2)
          to label %55 unwind label %78

55:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #5
  invoke void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %23, i32 noundef 4, i32 noundef 5, i32 noundef 6)
          to label %56 unwind label %82

56:                                               ; preds = %55
  invoke void @_ZN3glm3matILi2ELi3EfLNS_9qualifierE0EEC2ERKNS_3vecILi3EfLS1_0EEES6_(ptr noundef nonnull align 4 dereferenceable(24) %54, ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %23)
          to label %57 unwind label %82

57:                                               ; preds = %56
  %58 = getelementptr inbounds %"class.std::initializer_list", ptr %18, i32 0, i32 0
  store ptr %19, ptr %58, align 8, !tbaa !9
  %59 = getelementptr inbounds %"class.std::initializer_list", ptr %18, i32 0, i32 1
  store i64 2, ptr %59, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #5
  call void @_ZNSaIN3glm3matILi2ELi3EfLNS_9qualifierE0EEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #5
  %60 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8
  %62 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 1
  %63 = load i64, ptr %62, align 8
  invoke void @_ZNSt6vectorIN3glm3matILi2ELi3EfLNS0_9qualifierE0EEESaIS3_EEC2ESt16initializer_listIS3_ERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr %61, i64 %63, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %64 unwind label %86

64:                                               ; preds = %57
  call void @_ZNSt15__new_allocatorIN3glm3matILi2ELi3EfLNS0_9qualifierE0EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %19) #5
  %65 = load i32, ptr %1, align 4, !tbaa !5
  call void @_ZNSt6vectorIN3glm3matILi2ELi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #5
  call void @_ZNSt6vectorIN3glm3matILi2ELi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  ret i32 %65

66:                                               ; preds = %0
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %15, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %16, align 4
  call void @_ZNSt15__new_allocatorIN3glm3matILi2ELi3EfLNS0_9qualifierE0EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #5
  br label %94

70:                                               ; preds = %50
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %15, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %16, align 4
  br label %93

74:                                               ; preds = %52, %51
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %15, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %16, align 4
  br label %92

78:                                               ; preds = %53
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %15, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %16, align 4
  br label %91

82:                                               ; preds = %56, %55
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %15, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %16, align 4
  br label %90

86:                                               ; preds = %57
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %15, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %16, align 4
  call void @_ZNSt15__new_allocatorIN3glm3matILi2ELi3EfLNS0_9qualifierE0EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #5
  br label %90

90:                                               ; preds = %86, %82
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #5
  br label %91

91:                                               ; preds = %90, %78
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #5
  br label %92

92:                                               ; preds = %91, %74
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #5
  br label %93

93:                                               ; preds = %92, %70
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #5
  call void @_ZNSt6vectorIN3glm3matILi2ELi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  br label %94

94:                                               ; preds = %93, %66
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  br label %95

95:                                               ; preds = %94
  %96 = load ptr, ptr %15, align 8
  %97 = load i32, ptr %16, align 4
  %98 = insertvalue { ptr, i32 } poison, ptr %96, 0
  %99 = insertvalue { ptr, i32 } %98, i32 %97, 1
  resume { ptr, i32 } %99
}

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

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

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

; 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 uwtable
declare dso_local void @_ZN3glm3matILi2ELi3EfLNS_9qualifierE0EEC2IiiiiiiEET_T0_T1_T2_T3_T4_(ptr noundef nonnull align 4 dereferenceable(24), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3glm3allILi2ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(2)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i16 @_ZN3glm5equalILi2ELi3EfLNS_9qualifierE0EEENS_3vecIXT_EbXT2_EEERKNS_3matIXT_EXT0_ET1_XT2_EEES8_S5_(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(24), float noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3glm7epsilonIfEET_v() #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIN3glm3matILi2ELi3EfLNS_9qualifierE0EEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3glm3matILi2ELi3EfLNS0_9qualifierE0EEESaIS3_EEC2ESt16initializer_listIS3_ERKS4_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3glm3matILi2ELi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIN3glm3matILi2ELi3EfLNS0_9qualifierE0EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

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


; 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.glm::mat" = type { [2 x %"struct.glm::vec"] }
%"struct.glm::vec" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float, float }
%"struct.glm::vec.2" = type { %union.anon.3 }
%union.anon.3 = type { %struct.anon.4 }
%struct.anon.4 = type { i8, i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<glm::mat<2, 3, float>, std::allocator<glm::mat<2, 3, float>>>::_Vector_impl" }
%"struct.std::_Vector_base<glm::mat<2, 3, float>, std::allocator<glm::mat<2, 3, float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<glm::mat<2, 3, float>, std::allocator<glm::mat<2, 3, float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<glm::mat<2, 3, float>, std::allocator<glm::mat<2, 3, float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 3) i32 @_Z8test_ctrv() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"struct.glm::mat", align 4
  %2 = alloca %"struct.glm::vec", align 4
  %3 = alloca %"struct.glm::vec", align 4
  %4 = alloca %"struct.glm::mat", align 4
  %5 = alloca %"struct.glm::mat", align 4
  %6 = alloca %"struct.glm::vec", align 4
  %7 = alloca %"struct.glm::vec", align 4
  %8 = alloca %"struct.glm::vec.2", align 2
  %9 = alloca %"struct.glm::vec.2", align 2
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca [2 x %"struct.glm::mat"], align 4
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca [2 x %"struct.glm::mat"], align 4
  %15 = alloca %"struct.glm::vec", align 4
  %16 = alloca %"struct.glm::vec", align 4
  %17 = alloca %"struct.glm::vec", align 4
  %18 = alloca %"struct.glm::vec", align 4
  %19 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #5
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %2, i32 noundef 0, i32 noundef 1, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #5
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %3, i32 noundef 3, i32 noundef 4, i32 noundef 5)
  call void @_ZN3glm3matILi2ELi3EfLNS_9qualifierE0EEC2ERKNS_3vecILi3EfLS1_0EEES6_(ptr noundef nonnull align 4 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %3)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  call void @_ZN3glm3matILi2ELi3EfLNS_9qualifierE0EEC2IiiiiiiEET_T0_T1_T2_T3_T4_(ptr noundef nonnull align 4 dereferenceable(24) %4, i32 noundef 0, i32 noundef 1, i32 noundef 2, i32 noundef 3, i32 noundef 4, i32 noundef 5)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #5
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %6, i32 noundef 0, i32 noundef 1, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #5
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %7, i32 noundef 3, i32 noundef 4, i32 noundef 5)
  call void @_ZN3glm3matILi2ELi3EfLNS_9qualifierE0EEC2ERKNS_3vecILi3EfLS1_0EEES6_(ptr noundef nonnull align 4 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %7)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %8) #5
  %20 = call noundef float @_ZN3glm7epsilonIfEET_v()
  %21 = call i16 @_ZN3glm5equalILi2ELi3EfLNS_9qualifierE0EEENS_3vecIXT_EbXT2_EEERKNS_3matIXT_EXT0_ET1_XT2_EEES8_S5_(ptr noundef nonnull align 4 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(24) %5, float noundef %20)
  store i16 %21, ptr %8, align 2
  %22 = call noundef zeroext i1 @_ZN3glm3allILi2ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(2) %8)
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %9) #5
  %23 = call noundef float @_ZN3glm7epsilonIfEET_v()
  %24 = call i16 @_ZN3glm5equalILi2ELi3EfLNS_9qualifierE0EEENS_3vecIXT_EbXT2_EEERKNS_3matIXT_EXT0_ET1_XT2_EEES8_S5_(ptr noundef nonnull align 4 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(24) %5, float noundef %23)
  store i16 %24, ptr %9, align 2
  %25 = call noundef zeroext i1 @_ZN3glm3allILi2ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(2) %9)
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %11) #5
  call void @_ZN3glm3matILi2ELi3EfLNS_9qualifierE0EEC2IiiiiiiEET_T0_T1_T2_T3_T4_(ptr noundef nonnull align 4 dereferenceable(24) %11, i32 noundef 0, i32 noundef 1, i32 noundef 2, i32 noundef 3, i32 noundef 4, i32 noundef 5)
  %26 = getelementptr inbounds i8, ptr %11, i64 24
  call void @_ZN3glm3matILi2ELi3EfLNS_9qualifierE0EEC2IiiiiiiEET_T0_T1_T2_T3_T4_(ptr noundef nonnull align 4 dereferenceable(24) %26, i32 noundef 0, i32 noundef 1, i32 noundef 2, i32 noundef 3, i32 noundef 4, i32 noundef 5)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #5
  call void @_ZNSaIN3glm3matILi2ELi3EfLNS_9qualifierE0EEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  invoke void @_ZNSt6vectorIN3glm3matILi2ELi3EfLNS0_9qualifierE0EEESaIS3_EEC2ESt16initializer_listIS3_ERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr nonnull %11, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %27 unwind label %33

27:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIN3glm3matILi2ELi3EfLNS0_9qualifierE0EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #5
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %15, i32 noundef 0, i32 noundef 1, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #5
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef 4, i32 noundef 5, i32 noundef 6)
  call void @_ZN3glm3matILi2ELi3EfLNS_9qualifierE0EEC2ERKNS_3vecILi3EfLS1_0EEES6_(ptr noundef nonnull align 4 dereferenceable(24) %14, ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %16)
  %28 = getelementptr inbounds i8, ptr %14, i64 24
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #5
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %17, i32 noundef 0, i32 noundef 1, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #5
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %18, i32 noundef 4, i32 noundef 5, i32 noundef 6)
  call void @_ZN3glm3matILi2ELi3EfLNS_9qualifierE0EEC2ERKNS_3vecILi3EfLS1_0EEES6_(ptr noundef nonnull align 4 dereferenceable(24) %28, ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %18)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #5
  call void @_ZNSaIN3glm3matILi2ELi3EfLNS_9qualifierE0EEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  invoke void @_ZNSt6vectorIN3glm3matILi2ELi3EfLNS0_9qualifierE0EEESaIS3_EEC2ESt16initializer_listIS3_ERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr nonnull %14, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %29 unwind label %35

29:                                               ; preds = %27
  %not. = xor i1 %22, true
  %30 = zext i1 %not. to i32
  %not.7 = xor i1 %25, true
  %31 = zext i1 %not.7 to i32
  %32 = add nuw nsw i32 %31, %30
  call void @_ZNSt15__new_allocatorIN3glm3matILi2ELi3EfLNS0_9qualifierE0EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %14) #5
  call void @_ZNSt6vectorIN3glm3matILi2ELi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  call void @_ZNSt6vectorIN3glm3matILi2ELi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #5
  ret i32 %32

33:                                               ; preds = %0
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN3glm3matILi2ELi3EfLNS0_9qualifierE0EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #5
  br label %37

35:                                               ; preds = %27
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN3glm3matILi2ELi3EfLNS0_9qualifierE0EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  call void @_ZNSt6vectorIN3glm3matILi2ELi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  br label %37

37:                                               ; preds = %35, %33
  %.pn = phi { ptr, i32 } [ %36, %35 ], [ %34, %33 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #5
  resume { ptr, i32 } %.pn
}

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm3matILi2ELi3EfLNS_9qualifierE0EEC2IiiiiiiEET_T0_T1_T2_T3_T4_(ptr noundef nonnull align 4 dereferenceable(24), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3glm3allILi2ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(2)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i16 @_ZN3glm5equalILi2ELi3EfLNS_9qualifierE0EEENS_3vecIXT_EbXT2_EEERKNS_3matIXT_EXT0_ET1_XT2_EEES8_S5_(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(24), float noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3glm7epsilonIfEET_v() local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIN3glm3matILi2ELi3EfLNS_9qualifierE0EEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3glm3matILi2ELi3EfLNS0_9qualifierE0EEESaIS3_EEC2ESt16initializer_listIS3_ERKS4_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3glm3matILi2ELi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIN3glm3matILi2ELi3EfLNS0_9qualifierE0EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass