; LLVM IR from tangjz/acm-icpc :: lydsy/1048.ll (Z3dfsiiiii)

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

@mat = external dso_local global [11 x [11 x double]], align 16
@x = external dso_local global double, align 8
@f = external dso_local global [11 x [11 x [11 x [11 x [11 x double]]]]], align 16

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_Z3dfsiiiii(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
  %6 = alloca double, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  store i32 %0, ptr %7, align 4, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !5
  store i32 %4, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %19 = load i32, ptr %7, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [11 x [11 x [11 x [11 x [11 x double]]]]], ptr @f, i64 0, i64 %20
  %22 = load i32, ptr %8, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [11 x [11 x [11 x [11 x double]]]], ptr %21, i64 0, i64 %23
  %25 = load i32, ptr %9, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [11 x [11 x [11 x double]]], ptr %24, i64 0, i64 %26
  %28 = load i32, ptr %10, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [11 x [11 x double]], ptr %27, i64 0, i64 %29
  %31 = load i32, ptr %11, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [11 x double], ptr %30, i64 0, i64 %32
  store ptr %33, ptr %12, align 8, !tbaa !9
  %34 = load ptr, ptr %12, align 8, !tbaa !9
  %35 = load double, ptr %34, align 8, !tbaa !11
  %36 = fcmp olt double %35, 1.000000e+09
  br i1 %36, label %37, label %40

37:                                               ; preds = %5
  %38 = load ptr, ptr %12, align 8, !tbaa !9
  %39 = load double, ptr %38, align 8, !tbaa !11
  store double %39, ptr %6, align 8
  store i32 1, ptr %13, align 4
  br label %159

40:                                               ; preds = %5
  %41 = load i32, ptr %11, align 4, !tbaa !5
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %88, label %43

43:                                               ; preds = %40
  %44 = load i32, ptr %9, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [11 x [11 x double]], ptr @mat, i64 0, i64 %45
  %47 = load i32, ptr %10, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [11 x double], ptr %46, i64 0, i64 %48
  %50 = load double, ptr %49, align 8, !tbaa !11
  %51 = load i32, ptr %7, align 4, !tbaa !5
  %52 = sub nsw i32 %51, 1
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [11 x [11 x double]], ptr @mat, i64 0, i64 %53
  %55 = load i32, ptr %10, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [11 x double], ptr %54, i64 0, i64 %56
  %58 = load double, ptr %57, align 8, !tbaa !11
  %59 = fsub double %50, %58
  %60 = load i32, ptr %9, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [11 x [11 x double]], ptr @mat, i64 0, i64 %61
  %63 = load i32, ptr %8, align 4, !tbaa !5
  %64 = sub nsw i32 %63, 1
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [11 x double], ptr %62, i64 0, i64 %65
  %67 = load double, ptr %66, align 8, !tbaa !11
  %68 = fsub double %59, %67
  %69 = load i32, ptr %7, align 4, !tbaa !5
  %70 = sub nsw i32 %69, 1
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [11 x [11 x double]], ptr @mat, i64 0, i64 %71
  %73 = load i32, ptr %8, align 4, !tbaa !5
  %74 = sub nsw i32 %73, 1
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [11 x double], ptr %72, i64 0, i64 %75
  %77 = load double, ptr %76, align 8, !tbaa !11
  %78 = fadd double %68, %77
  %79 = load double, ptr @x, align 8, !tbaa !11
  %80 = fsub double %78, %79
  %81 = load ptr, ptr %12, align 8, !tbaa !9
  store double %80, ptr %81, align 8, !tbaa !11
  %82 = load ptr, ptr %12, align 8, !tbaa !9
  %83 = load double, ptr %82, align 8, !tbaa !11
  %84 = load ptr, ptr %12, align 8, !tbaa !9
  %85 = load double, ptr %84, align 8, !tbaa !11
  %86 = fmul double %83, %85
  %87 = load ptr, ptr %12, align 8, !tbaa !9
  store double %86, ptr %87, align 8, !tbaa !11
  store double %86, ptr %6, align 8
  store i32 1, ptr %13, align 4
  br label %159

88:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %153, %88
  %90 = load i32, ptr %14, align 4, !tbaa !5
  %91 = load i32, ptr %11, align 4, !tbaa !5
  %92 = icmp slt i32 %90, %91
  br i1 %92, label %94, label %93

93:                                               ; preds = %89
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  br label %156

94:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %95 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %95, ptr %15, align 4, !tbaa !5
  br label %96

96:                                               ; preds = %120, %94
  %97 = load i32, ptr %15, align 4, !tbaa !5
  %98 = load i32, ptr %9, align 4, !tbaa !5
  %99 = icmp slt i32 %97, %98
  br i1 %99, label %101, label %100

100:                                              ; preds = %96
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  br label %123

101:                                              ; preds = %96
  %102 = load ptr, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %103 = load i32, ptr %7, align 4, !tbaa !5
  %104 = load i32, ptr %8, align 4, !tbaa !5
  %105 = load i32, ptr %15, align 4, !tbaa !5
  %106 = load i32, ptr %10, align 4, !tbaa !5
  %107 = load i32, ptr %14, align 4, !tbaa !5
  %108 = call noundef double @_Z3dfsiiiii(i32 noundef %103, i32 noundef %104, i32 noundef %105, i32 noundef %106, i32 noundef %107)
  %109 = load i32, ptr %15, align 4, !tbaa !5
  %110 = add nsw i32 %109, 1
  %111 = load i32, ptr %8, align 4, !tbaa !5
  %112 = load i32, ptr %9, align 4, !tbaa !5
  %113 = load i32, ptr %10, align 4, !tbaa !5
  %114 = load i32, ptr %11, align 4, !tbaa !5
  %115 = load i32, ptr %14, align 4, !tbaa !5
  %116 = sub nsw i32 %114, %115
  %117 = sub nsw i32 %116, 1
  %118 = call noundef double @_Z3dfsiiiii(i32 noundef %110, i32 noundef %111, i32 noundef %112, i32 noundef %113, i32 noundef %117)
  %119 = fadd double %108, %118
  store double %119, ptr %16, align 8, !tbaa !11
  call void @_Z6updateIdEvRT_RKS0_(ptr noundef nonnull align 8 dereferenceable(8) %102, ptr noundef nonnull align 8 dereferenceable(8) %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  br label %120

120:                                              ; preds = %101
  %121 = load i32, ptr %15, align 4, !tbaa !5
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %15, align 4, !tbaa !5
  br label %96, !llvm.loop !13

123:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %124 = load i32, ptr %8, align 4, !tbaa !5
  store i32 %124, ptr %17, align 4, !tbaa !5
  br label %125

125:                                              ; preds = %149, %123
  %126 = load i32, ptr %17, align 4, !tbaa !5
  %127 = load i32, ptr %10, align 4, !tbaa !5
  %128 = icmp slt i32 %126, %127
  br i1 %128, label %130, label %129

129:                                              ; preds = %125
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  br label %152

130:                                              ; preds = %125
  %131 = load ptr, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %132 = load i32, ptr %7, align 4, !tbaa !5
  %133 = load i32, ptr %8, align 4, !tbaa !5
  %134 = load i32, ptr %9, align 4, !tbaa !5
  %135 = load i32, ptr %17, align 4, !tbaa !5
  %136 = load i32, ptr %14, align 4, !tbaa !5
  %137 = call noundef double @_Z3dfsiiiii(i32 noundef %132, i32 noundef %133, i32 noundef %134, i32 noundef %135, i32 noundef %136)
  %138 = load i32, ptr %7, align 4, !tbaa !5
  %139 = load i32, ptr %17, align 4, !tbaa !5
  %140 = add nsw i32 %139, 1
  %141 = load i32, ptr %9, align 4, !tbaa !5
  %142 = load i32, ptr %10, align 4, !tbaa !5
  %143 = load i32, ptr %11, align 4, !tbaa !5
  %144 = load i32, ptr %14, align 4, !tbaa !5
  %145 = sub nsw i32 %143, %144
  %146 = sub nsw i32 %145, 1
  %147 = call noundef double @_Z3dfsiiiii(i32 noundef %138, i32 noundef %140, i32 noundef %141, i32 noundef %142, i32 noundef %146)
  %148 = fadd double %137, %147
  store double %148, ptr %18, align 8, !tbaa !11
  call void @_Z6updateIdEvRT_RKS0_(ptr noundef nonnull align 8 dereferenceable(8) %131, ptr noundef nonnull align 8 dereferenceable(8) %18)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  br label %149

149:                                              ; preds = %130
  %150 = load i32, ptr %17, align 4, !tbaa !5
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %17, align 4, !tbaa !5
  br label %125, !llvm.loop !15

152:                                              ; preds = %129
  br label %153

153:                                              ; preds = %152
  %154 = load i32, ptr %14, align 4, !tbaa !5
  %155 = add nsw i32 %154, 1
  store i32 %155, ptr %14, align 4, !tbaa !5
  br label %89, !llvm.loop !16

156:                                              ; preds = %93
  %157 = load ptr, ptr %12, align 8, !tbaa !9
  %158 = load double, ptr %157, align 8, !tbaa !11
  store double %158, ptr %6, align 8
  store i32 1, ptr %13, align 4
  br label %159

159:                                              ; preds = %156, %43, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  %160 = load double, ptr %6, align 8
  ret double %160
}

; 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 @_Z6updateIdEvRT_RKS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

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


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

@mat = external dso_local local_unnamed_addr global [11 x [11 x double]], align 16
@x = external dso_local local_unnamed_addr global double, align 8
@f = external dso_local global [11 x [11 x [11 x [11 x [11 x double]]]]], align 16

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef double @_Z3dfsiiiii(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #0 {
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = sext i32 %0 to i64
  %9 = sext i32 %1 to i64
  %10 = sext i32 %2 to i64
  %11 = sext i32 %3 to i64
  %12 = sext i32 %4 to i64
  %13 = getelementptr inbounds [11 x [11 x [11 x [11 x [11 x double]]]]], ptr @f, i64 0, i64 %8, i64 %9, i64 %10, i64 %11, i64 %12
  %14 = load double, ptr %13, align 8, !tbaa !5
  %15 = fcmp olt double %14, 1.000000e+09
  br i1 %15, label %68, label %16

16:                                               ; preds = %5
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %48, label %.preheader64

.preheader64:                                     ; preds = %16
  %17 = icmp sgt i32 %4, 0
  br i1 %17, label %.preheader63.lr.ph, label %._crit_edge69

.preheader63.lr.ph:                               ; preds = %.preheader64
  %18 = icmp slt i32 %0, %2
  %19 = icmp slt i32 %1, %3
  br i1 %18, label %.preheader63.lr.ph.split.us, label %.preheader63.lr.ph.split

.preheader63.lr.ph.split.us:                      ; preds = %.preheader63.lr.ph
  br i1 %19, label %.preheader63.us.us, label %.preheader63.us

.preheader63.us.us:                               ; preds = %.preheader63.lr.ph.split.us, %._crit_edge.us.us
  %.05768.us.us = phi i32 [ %31, %._crit_edge.us.us ], [ 0, %.preheader63.lr.ph.split.us ]
  %20 = xor i32 %.05768.us.us, -1
  %21 = add nsw i32 %20, %4
  br label %26

..preheader_crit_edge.us.us:                      ; preds = %26, %..preheader_crit_edge.us.us
  %.066.us.us = phi i32 [ %23, %..preheader_crit_edge.us.us ], [ %1, %26 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  %22 = call noundef double @_Z3dfsiiiii(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %.066.us.us, i32 noundef %.05768.us.us)
  %23 = add i32 %.066.us.us, 1
  %24 = call noundef double @_Z3dfsiiiii(i32 noundef %0, i32 noundef %23, i32 noundef %2, i32 noundef %3, i32 noundef %21)
  %25 = fadd double %22, %24
  store double %25, ptr %7, align 8, !tbaa !5
  call void @_Z6updateIdEvRT_RKS0_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  %exitcond82.not = icmp eq i32 %23, %3
  br i1 %exitcond82.not, label %._crit_edge.us.us, label %..preheader_crit_edge.us.us, !llvm.loop !9

26:                                               ; preds = %26, %.preheader63.us.us
  %.05665.us.us = phi i32 [ %0, %.preheader63.us.us ], [ %28, %26 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  %27 = call noundef double @_Z3dfsiiiii(i32 noundef %0, i32 noundef %1, i32 noundef %.05665.us.us, i32 noundef %3, i32 noundef %.05768.us.us)
  %28 = add i32 %.05665.us.us, 1
  %29 = call noundef double @_Z3dfsiiiii(i32 noundef %28, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %21)
  %30 = fadd double %27, %29
  store double %30, ptr %6, align 8, !tbaa !5
  call void @_Z6updateIdEvRT_RKS0_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  %exitcond81.not = icmp eq i32 %28, %2
  br i1 %exitcond81.not, label %..preheader_crit_edge.us.us, label %26, !llvm.loop !11

._crit_edge.us.us:                                ; preds = %..preheader_crit_edge.us.us
  %31 = add nuw nsw i32 %.05768.us.us, 1
  %exitcond83.not = icmp eq i32 %31, %4
  br i1 %exitcond83.not, label %._crit_edge69, label %.preheader63.us.us, !llvm.loop !12

.preheader63.us:                                  ; preds = %.preheader63.lr.ph.split.us, %..preheader_crit_edge.us
  %.05768.us = phi i32 [ %39, %..preheader_crit_edge.us ], [ 0, %.preheader63.lr.ph.split.us ]
  %32 = xor i32 %.05768.us, -1
  %33 = add nsw i32 %32, %4
  br label %34

34:                                               ; preds = %.preheader63.us, %34
  %.05665.us = phi i32 [ %0, %.preheader63.us ], [ %36, %34 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  %35 = call noundef double @_Z3dfsiiiii(i32 noundef %0, i32 noundef %1, i32 noundef %.05665.us, i32 noundef %3, i32 noundef %.05768.us)
  %36 = add i32 %.05665.us, 1
  %37 = call noundef double @_Z3dfsiiiii(i32 noundef %36, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %33)
  %38 = fadd double %35, %37
  store double %38, ptr %6, align 8, !tbaa !5
  call void @_Z6updateIdEvRT_RKS0_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  %exitcond79.not = icmp eq i32 %36, %2
  br i1 %exitcond79.not, label %..preheader_crit_edge.us, label %34, !llvm.loop !11

..preheader_crit_edge.us:                         ; preds = %34
  %39 = add nuw nsw i32 %.05768.us, 1
  %exitcond80.not = icmp eq i32 %39, %4
  br i1 %exitcond80.not, label %._crit_edge69, label %.preheader63.us, !llvm.loop !12

.preheader63.lr.ph.split:                         ; preds = %.preheader63.lr.ph
  br i1 %19, label %.preheader63.us70, label %._crit_edge69

.preheader63.us70:                                ; preds = %.preheader63.lr.ph.split, %._crit_edge.us74
  %.05768.us71 = phi i32 [ %47, %._crit_edge.us74 ], [ 0, %.preheader63.lr.ph.split ]
  %40 = xor i32 %.05768.us71, -1
  %41 = add nsw i32 %40, %4
  br label %42

42:                                               ; preds = %.preheader63.us70, %42
  %.066.us72 = phi i32 [ %1, %.preheader63.us70 ], [ %44, %42 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  %43 = call noundef double @_Z3dfsiiiii(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %.066.us72, i32 noundef %.05768.us71)
  %44 = add i32 %.066.us72, 1
  %45 = call noundef double @_Z3dfsiiiii(i32 noundef %0, i32 noundef %44, i32 noundef %2, i32 noundef %3, i32 noundef %41)
  %46 = fadd double %43, %45
  store double %46, ptr %7, align 8, !tbaa !5
  call void @_Z6updateIdEvRT_RKS0_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  %exitcond.not = icmp eq i32 %44, %3
  br i1 %exitcond.not, label %._crit_edge.us74, label %42, !llvm.loop !9

._crit_edge.us74:                                 ; preds = %42
  %47 = add nuw nsw i32 %.05768.us71, 1
  %exitcond78.not = icmp eq i32 %47, %4
  br i1 %exitcond78.not, label %._crit_edge69, label %.preheader63.us70, !llvm.loop !12

48:                                               ; preds = %16
  %49 = getelementptr inbounds [11 x [11 x double]], ptr @mat, i64 0, i64 %10, i64 %11
  %50 = load double, ptr %49, align 8, !tbaa !5
  %51 = add nsw i32 %0, -1
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [11 x [11 x double]], ptr @mat, i64 0, i64 %52, i64 %11
  %54 = load double, ptr %53, align 8, !tbaa !5
  %55 = fsub double %50, %54
  %56 = add nsw i32 %1, -1
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [11 x [11 x double]], ptr @mat, i64 0, i64 %10, i64 %57
  %59 = load double, ptr %58, align 8, !tbaa !5
  %60 = fsub double %55, %59
  %61 = getelementptr inbounds [11 x [11 x double]], ptr @mat, i64 0, i64 %52, i64 %57
  %62 = load double, ptr %61, align 8, !tbaa !5
  %63 = fadd double %60, %62
  %64 = load double, ptr @x, align 8, !tbaa !5
  %65 = fsub double %63, %64
  %66 = fmul double %65, %65
  store double %66, ptr %13, align 8, !tbaa !5
  br label %68

._crit_edge69:                                    ; preds = %._crit_edge.us74, %..preheader_crit_edge.us, %._crit_edge.us.us, %.preheader63.lr.ph.split, %.preheader64
  %67 = load double, ptr %13, align 8, !tbaa !5
  br label %68

68:                                               ; preds = %5, %._crit_edge69, %48
  %.058 = phi double [ %67, %._crit_edge69 ], [ %66, %48 ], [ %14, %5 ]
  ret double %.058
}

; 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 @_Z6updateIdEvRT_RKS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

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

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass