; LLVM IR from nobuyuki83/delfem2 :: examples_cuda/002_MatMat (main)

; 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"

@.str = external hidden unnamed_addr constant [27 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z10h_multiplyPfPKfS1_j(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #0

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [289 x float], align 16
  %4 = alloca [289 x float], align 16
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca [289 x float], align 16
  %8 = alloca i64, align 8
  %9 = alloca [289 x float], align 16
  %10 = alloca i64, align 8
  %11 = alloca float, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca float, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 17, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1156, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 1156, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %16

16:                                               ; preds = %33, %0
  %17 = load i32, ptr %5, align 4, !tbaa !5
  %18 = icmp ult i32 %17, 289
  br i1 %18, label %20, label %19

19:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %36

20:                                               ; preds = %16
  %21 = load i32, ptr %5, align 4, !tbaa !5
  %22 = urem i32 %21, 17
  %23 = uitofp i32 %22 to float
  %24 = load i32, ptr %5, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [289 x float], ptr %3, i64 0, i64 %25
  store float %23, ptr %26, align 4, !tbaa !9
  %27 = load i32, ptr %5, align 4, !tbaa !5
  %28 = urem i32 %27, 17
  %29 = uitofp i32 %28 to float
  %30 = load i32, ptr %5, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [289 x float], ptr %4, i64 0, i64 %31
  store float %29, ptr %32, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %20
  %34 = load i32, ptr %5, align 4, !tbaa !5
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %5, align 4, !tbaa !5
  br label %16, !llvm.loop !11

36:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %37 = call i64 @clock() #6
  store i64 %37, ptr %6, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1156, ptr %7) #6
  %38 = getelementptr inbounds [289 x float], ptr %7, i64 0, i64 0
  %39 = getelementptr inbounds [289 x float], ptr %3, i64 0, i64 0
  %40 = getelementptr inbounds [289 x float], ptr %4, i64 0, i64 0
  call void @_Z10h_multiplyPfPKfS1_j(ptr noundef %38, ptr noundef %39, ptr noundef %40, i32 noundef 17)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %41 = call i64 @clock() #6
  store i64 %41, ptr %8, align 8, !tbaa !13
  %42 = load i64, ptr %8, align 8, !tbaa !13
  %43 = load i64, ptr %6, align 8, !tbaa !13
  %44 = sub nsw i64 %42, %43
  %45 = sitofp i64 %44 to double
  %46 = fdiv double %45, 1.000000e+06
  %47 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %46)
  call void @llvm.lifetime.start.p0(i64 1156, ptr %9) #6
  %48 = getelementptr inbounds [289 x float], ptr %9, i64 0, i64 0
  %49 = getelementptr inbounds [289 x float], ptr %3, i64 0, i64 0
  %50 = getelementptr inbounds [289 x float], ptr %4, i64 0, i64 0
  call void @_ZN7delfem24cuda11cuda_MatMatEPfPKfS3_j(ptr noundef %48, ptr noundef %49, ptr noundef %50, i32 noundef 17)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %51 = call i64 @clock() #6
  store i64 %51, ptr %10, align 8, !tbaa !13
  %52 = load i64, ptr %10, align 8, !tbaa !13
  %53 = load i64, ptr %8, align 8, !tbaa !13
  %54 = sub nsw i64 %52, %53
  %55 = sitofp i64 %54 to double
  %56 = fdiv double %55, 1.000000e+06
  %57 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %56)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store float 0.000000e+00, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %91, %36
  %59 = load i32, ptr %12, align 4, !tbaa !5
  %60 = icmp ult i32 %59, 17
  br i1 %60, label %62, label %61

61:                                               ; preds = %58
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %94

62:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %87, %62
  %64 = load i32, ptr %14, align 4, !tbaa !5
  %65 = icmp ult i32 %64, 17
  br i1 %65, label %67, label %66

66:                                               ; preds = %63
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %90

67:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %68 = load i32, ptr %12, align 4, !tbaa !5
  %69 = mul i32 %68, 17
  %70 = load i32, ptr %14, align 4, !tbaa !5
  %71 = add i32 %69, %70
  %72 = zext i32 %71 to i64
  %73 = getelementptr inbounds [289 x float], ptr %7, i64 0, i64 %72
  %74 = load float, ptr %73, align 4, !tbaa !9
  %75 = load i32, ptr %12, align 4, !tbaa !5
  %76 = mul i32 %75, 17
  %77 = load i32, ptr %14, align 4, !tbaa !5
  %78 = add i32 %76, %77
  %79 = zext i32 %78 to i64
  %80 = getelementptr inbounds [289 x float], ptr %9, i64 0, i64 %79
  %81 = load float, ptr %80, align 4, !tbaa !9
  %82 = fsub float %74, %81
  store float %82, ptr %15, align 4, !tbaa !9
  %83 = load float, ptr %15, align 4, !tbaa !9
  %84 = load float, ptr %15, align 4, !tbaa !9
  %85 = load float, ptr %11, align 4, !tbaa !9
  %86 = call float @llvm.fmuladd.f32(float %83, float %84, float %85)
  store float %86, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %87

87:                                               ; preds = %67
  %88 = load i32, ptr %14, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %14, align 4, !tbaa !5
  br label %63, !llvm.loop !15

90:                                               ; preds = %66
  br label %91

91:                                               ; preds = %90
  %92 = load i32, ptr %12, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %12, align 4, !tbaa !5
  br label %58, !llvm.loop !16

94:                                               ; preds = %61
  %95 = load float, ptr %11, align 4, !tbaa !9
  %96 = fpext float %95 to double
  %97 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %96)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 1156, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 1156, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 1156, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 1156, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %98 = load i32, ptr %1, align 4
  ret i32 %98
}

; Function Attrs: nounwind
declare i64 @clock() #4

declare i32 @printf(ptr noundef, ...) #5

declare void @_ZN7delfem24cuda11cuda_MatMatEPfPKfS3_j(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #5

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { mustprogress norecurse 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 "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 = { "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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


; 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"

@.str = external hidden unnamed_addr constant [27 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z10h_multiplyPfPKfS1_j(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
vector.ph:
  %0 = alloca [289 x float], align 16
  %1 = alloca [289 x float], align 16
  %2 = alloca [289 x float], align 16
  %3 = alloca [289 x float], align 16
  call void @llvm.lifetime.start.p0(i64 1156, ptr nonnull %0) #7
  call void @llvm.lifetime.start.p0(i64 1156, ptr nonnull %1) #7
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <4 x i16> [ <i16 0, i16 1, i16 2, i16 3>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <4 x i16> %vec.ind, <i16 4, i16 4, i16 4, i16 4>
  %4 = urem <4 x i16> %vec.ind, <i16 17, i16 17, i16 17, i16 17>
  %5 = urem <4 x i16> %step.add, <i16 17, i16 17, i16 17, i16 17>
  %6 = uitofp nneg <4 x i16> %4 to <4 x float>
  %7 = uitofp nneg <4 x i16> %5 to <4 x float>
  %8 = getelementptr inbounds [289 x float], ptr %0, i64 0, i64 %index
  %9 = getelementptr inbounds i8, ptr %8, i64 16
  store <4 x float> %6, ptr %8, align 16, !tbaa !5
  store <4 x float> %7, ptr %9, align 16, !tbaa !5
  %10 = getelementptr inbounds [289 x float], ptr %1, i64 0, i64 %index
  %11 = getelementptr inbounds i8, ptr %10, i64 16
  store <4 x float> %6, ptr %10, align 16, !tbaa !5
  store <4 x float> %7, ptr %11, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i16> %vec.ind, <i16 8, i16 8, i16 8, i16 8>
  %12 = icmp eq i64 %index.next, 288
  br i1 %12, label %scalar.ph, label %vector.body, !llvm.loop !9

scalar.ph:                                        ; preds = %vector.body
  %13 = getelementptr inbounds i8, ptr %0, i64 1152
  store float 1.600000e+01, ptr %13, align 16, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %1, i64 1152
  store float 1.600000e+01, ptr %14, align 16, !tbaa !5
  %15 = tail call i64 @clock() #7
  call void @llvm.lifetime.start.p0(i64 1156, ptr nonnull %2) #7
  call void @_Z10h_multiplyPfPKfS1_j(ptr noundef nonnull %2, ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef 17)
  %16 = call i64 @clock() #7
  %17 = sub nsw i64 %16, %15
  %18 = sitofp i64 %17 to double
  %19 = fdiv double %18, 1.000000e+06
  %20 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %19)
  call void @llvm.lifetime.start.p0(i64 1156, ptr nonnull %3) #7
  call void @_ZN7delfem24cuda11cuda_MatMatEPfPKfS3_j(ptr noundef nonnull %3, ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef 17)
  %21 = call i64 @clock() #7
  %22 = sub nsw i64 %21, %16
  %23 = sitofp i64 %22 to double
  %24 = fdiv double %23, 1.000000e+06
  %25 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %24)
  br label %.preheader

.preheader:                                       ; preds = %scalar.ph, %.preheader
  %indvars.iv35 = phi i64 [ 0, %scalar.ph ], [ %indvars.iv.next36, %.preheader ]
  %.02428 = phi float [ 0.000000e+00, %scalar.ph ], [ %144, %.preheader ]
  %26 = mul nuw nsw i64 %indvars.iv35, 17
  %27 = getelementptr inbounds [289 x float], ptr %2, i64 0, i64 %26
  %28 = load float, ptr %27, align 4, !tbaa !5
  %29 = getelementptr inbounds [289 x float], ptr %3, i64 0, i64 %26
  %30 = load float, ptr %29, align 4, !tbaa !5
  %31 = fsub float %28, %30
  %32 = call float @llvm.fmuladd.f32(float %31, float %31, float %.02428)
  %33 = add nuw nsw i64 %26, 1
  %34 = getelementptr inbounds [289 x float], ptr %2, i64 0, i64 %33
  %35 = load float, ptr %34, align 4, !tbaa !5
  %36 = getelementptr inbounds [289 x float], ptr %3, i64 0, i64 %33
  %37 = load float, ptr %36, align 4, !tbaa !5
  %38 = fsub float %35, %37
  %39 = call float @llvm.fmuladd.f32(float %38, float %38, float %32)
  %40 = add nuw nsw i64 %26, 2
  %41 = getelementptr inbounds [289 x float], ptr %2, i64 0, i64 %40
  %42 = load float, ptr %41, align 4, !tbaa !5
  %43 = getelementptr inbounds [289 x float], ptr %3, i64 0, i64 %40
  %44 = load float, ptr %43, align 4, !tbaa !5
  %45 = fsub float %42, %44
  %46 = call float @llvm.fmuladd.f32(float %45, float %45, float %39)
  %47 = add nuw nsw i64 %26, 3
  %48 = getelementptr inbounds [289 x float], ptr %2, i64 0, i64 %47
  %49 = load float, ptr %48, align 4, !tbaa !5
  %50 = getelementptr inbounds [289 x float], ptr %3, i64 0, i64 %47
  %51 = load float, ptr %50, align 4, !tbaa !5
  %52 = fsub float %49, %51
  %53 = call float @llvm.fmuladd.f32(float %52, float %52, float %46)
  %54 = add nuw nsw i64 %26, 4
  %55 = getelementptr inbounds [289 x float], ptr %2, i64 0, i64 %54
  %56 = load float, ptr %55, align 4, !tbaa !5
  %57 = getelementptr inbounds [289 x float], ptr %3, i64 0, i64 %54
  %58 = load float, ptr %57, align 4, !tbaa !5
  %59 = fsub float %56, %58
  %60 = call float @llvm.fmuladd.f32(float %59, float %59, float %53)
  %61 = add nuw nsw i64 %26, 5
  %62 = getelementptr inbounds [289 x float], ptr %2, i64 0, i64 %61
  %63 = load float, ptr %62, align 4, !tbaa !5
  %64 = getelementptr inbounds [289 x float], ptr %3, i64 0, i64 %61
  %65 = load float, ptr %64, align 4, !tbaa !5
  %66 = fsub float %63, %65
  %67 = call float @llvm.fmuladd.f32(float %66, float %66, float %60)
  %68 = add nuw nsw i64 %26, 6
  %69 = getelementptr inbounds [289 x float], ptr %2, i64 0, i64 %68
  %70 = load float, ptr %69, align 4, !tbaa !5
  %71 = getelementptr inbounds [289 x float], ptr %3, i64 0, i64 %68
  %72 = load float, ptr %71, align 4, !tbaa !5
  %73 = fsub float %70, %72
  %74 = call float @llvm.fmuladd.f32(float %73, float %73, float %67)
  %75 = add nuw nsw i64 %26, 7
  %76 = getelementptr inbounds [289 x float], ptr %2, i64 0, i64 %75
  %77 = load float, ptr %76, align 4, !tbaa !5
  %78 = getelementptr inbounds [289 x float], ptr %3, i64 0, i64 %75
  %79 = load float, ptr %78, align 4, !tbaa !5
  %80 = fsub float %77, %79
  %81 = call float @llvm.fmuladd.f32(float %80, float %80, float %74)
  %82 = add nuw nsw i64 %26, 8
  %83 = getelementptr inbounds [289 x float], ptr %2, i64 0, i64 %82
  %84 = load float, ptr %83, align 4, !tbaa !5
  %85 = getelementptr inbounds [289 x float], ptr %3, i64 0, i64 %82
  %86 = load float, ptr %85, align 4, !tbaa !5
  %87 = fsub float %84, %86
  %88 = call float @llvm.fmuladd.f32(float %87, float %87, float %81)
  %89 = add nuw nsw i64 %26, 9
  %90 = getelementptr inbounds [289 x float], ptr %2, i64 0, i64 %89
  %91 = load float, ptr %90, align 4, !tbaa !5
  %92 = getelementptr inbounds [289 x float], ptr %3, i64 0, i64 %89
  %93 = load float, ptr %92, align 4, !tbaa !5
  %94 = fsub float %91, %93
  %95 = call float @llvm.fmuladd.f32(float %94, float %94, float %88)
  %96 = add nuw nsw i64 %26, 10
  %97 = getelementptr inbounds [289 x float], ptr %2, i64 0, i64 %96
  %98 = load float, ptr %97, align 4, !tbaa !5
  %99 = getelementptr inbounds [289 x float], ptr %3, i64 0, i64 %96
  %100 = load float, ptr %99, align 4, !tbaa !5
  %101 = fsub float %98, %100
  %102 = call float @llvm.fmuladd.f32(float %101, float %101, float %95)
  %103 = add nuw nsw i64 %26, 11
  %104 = getelementptr inbounds [289 x float], ptr %2, i64 0, i64 %103
  %105 = load float, ptr %104, align 4, !tbaa !5
  %106 = getelementptr inbounds [289 x float], ptr %3, i64 0, i64 %103
  %107 = load float, ptr %106, align 4, !tbaa !5
  %108 = fsub float %105, %107
  %109 = call float @llvm.fmuladd.f32(float %108, float %108, float %102)
  %110 = add nuw nsw i64 %26, 12
  %111 = getelementptr inbounds [289 x float], ptr %2, i64 0, i64 %110
  %112 = load float, ptr %111, align 4, !tbaa !5
  %113 = getelementptr inbounds [289 x float], ptr %3, i64 0, i64 %110
  %114 = load float, ptr %113, align 4, !tbaa !5
  %115 = fsub float %112, %114
  %116 = call float @llvm.fmuladd.f32(float %115, float %115, float %109)
  %117 = add nuw nsw i64 %26, 13
  %118 = getelementptr inbounds [289 x float], ptr %2, i64 0, i64 %117
  %119 = load float, ptr %118, align 4, !tbaa !5
  %120 = getelementptr inbounds [289 x float], ptr %3, i64 0, i64 %117
  %121 = load float, ptr %120, align 4, !tbaa !5
  %122 = fsub float %119, %121
  %123 = call float @llvm.fmuladd.f32(float %122, float %122, float %116)
  %124 = add nuw nsw i64 %26, 14
  %125 = getelementptr inbounds [289 x float], ptr %2, i64 0, i64 %124
  %126 = load float, ptr %125, align 4, !tbaa !5
  %127 = getelementptr inbounds [289 x float], ptr %3, i64 0, i64 %124
  %128 = load float, ptr %127, align 4, !tbaa !5
  %129 = fsub float %126, %128
  %130 = call float @llvm.fmuladd.f32(float %129, float %129, float %123)
  %131 = add nuw nsw i64 %26, 15
  %132 = getelementptr inbounds [289 x float], ptr %2, i64 0, i64 %131
  %133 = load float, ptr %132, align 4, !tbaa !5
  %134 = getelementptr inbounds [289 x float], ptr %3, i64 0, i64 %131
  %135 = load float, ptr %134, align 4, !tbaa !5
  %136 = fsub float %133, %135
  %137 = call float @llvm.fmuladd.f32(float %136, float %136, float %130)
  %138 = add nuw nsw i64 %26, 16
  %139 = getelementptr inbounds [289 x float], ptr %2, i64 0, i64 %138
  %140 = load float, ptr %139, align 4, !tbaa !5
  %141 = getelementptr inbounds [289 x float], ptr %3, i64 0, i64 %138
  %142 = load float, ptr %141, align 4, !tbaa !5
  %143 = fsub float %140, %142
  %144 = call float @llvm.fmuladd.f32(float %143, float %143, float %137)
  %indvars.iv.next36 = add nuw nsw i64 %indvars.iv35, 1
  %exitcond38.not = icmp eq i64 %indvars.iv.next36, 17
  br i1 %exitcond38.not, label %145, label %.preheader, !llvm.loop !13

145:                                              ; preds = %.preheader
  %146 = fpext float %144 to double
  %147 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %146)
  call void @llvm.lifetime.end.p0(i64 1156, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 1156, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 1156, ptr nonnull %1) #7
  call void @llvm.lifetime.end.p0(i64 1156, ptr nonnull %0) #7
  ret i32 0
}

; Function Attrs: nounwind
declare i64 @clock() local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #5

declare void @_ZN7delfem24cuda11cuda_MatMatEPfPKfS3_j(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { mustprogress norecurse 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 "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 = { nofree 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 = { "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 #7 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10}


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