; LLVM IR from bondhugula/pluto :: examples/3d7pt (3d7pt)

; 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.timeval = type { i64, i64 }

@.str = external hidden unnamed_addr constant [51 x i8], align 1
@A = external dso_local global [2 x [258 x [258 x [258 x double]]]], align 16

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %struct.timeval, align 8
  %8 = alloca %struct.timeval, align 8
  %9 = alloca %struct.timeval, align 8
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 -1, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store double 0.000000e+00, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 1024, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store double 0x3FB66CF41F212D77, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  store double 0x3FB395810624DD2F, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %19 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef 256, i64 noundef 200)
  call void @srand(i32 noundef 42) #5
  store i32 1, ptr %12, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %56, %2
  %21 = load i32, ptr %12, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = icmp slt i64 %22, 257
  br i1 %23, label %24, label %59

24:                                               ; preds = %20
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %52, %24
  %26 = load i32, ptr %13, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = icmp slt i64 %27, 257
  br i1 %28, label %29, label %55

29:                                               ; preds = %25
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %48, %29
  %31 = load i32, ptr %14, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = icmp slt i64 %32, 257
  br i1 %33, label %34, label %51

34:                                               ; preds = %30
  %35 = call i32 @rand() #5
  %36 = srem i32 %35, 1024
  %37 = sitofp i32 %36 to double
  %38 = fmul double 1.000000e+00, %37
  %39 = load i32, ptr %12, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [258 x [258 x [258 x double]]], ptr @A, i64 0, i64 %40
  %42 = load i32, ptr %13, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [258 x [258 x double]], ptr %41, i64 0, i64 %43
  %45 = load i32, ptr %14, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [258 x double], ptr %44, i64 0, i64 %46
  store double %38, ptr %47, align 8, !tbaa !11
  br label %48

48:                                               ; preds = %34
  %49 = load i32, ptr %14, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %14, align 4, !tbaa !5
  br label %30, !llvm.loop !13

51:                                               ; preds = %30
  br label %52

52:                                               ; preds = %51
  %53 = load i32, ptr %13, align 4, !tbaa !5
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %13, align 4, !tbaa !5
  br label %25, !llvm.loop !15

55:                                               ; preds = %25
  br label %56

56:                                               ; preds = %55
  %57 = load i32, ptr %12, align 4, !tbaa !5
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %12, align 4, !tbaa !5
  br label %20, !llvm.loop !16

59:                                               ; preds = %20
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %217, %59
  %61 = load i32, ptr %11, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = icmp slt i64 %62, 199
  br i1 %63, label %64, label %220

64:                                               ; preds = %60
  store i32 1, ptr %12, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %213, %64
  %66 = load i32, ptr %12, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = icmp slt i64 %67, 257
  br i1 %68, label %69, label %216

69:                                               ; preds = %65
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %209, %69
  %71 = load i32, ptr %13, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = icmp slt i64 %72, 257
  br i1 %73, label %74, label %212

74:                                               ; preds = %70
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %205, %74
  %76 = load i32, ptr %14, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = icmp slt i64 %77, 257
  br i1 %78, label %79, label %208

79:                                               ; preds = %75
  %80 = load i32, ptr %11, align 4, !tbaa !5
  %81 = srem i32 %80, 2
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [2 x [258 x [258 x [258 x double]]]], ptr @A, i64 0, i64 %82
  %84 = load i32, ptr %12, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [258 x [258 x [258 x double]]], ptr %83, i64 0, i64 %85
  %87 = load i32, ptr %13, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [258 x [258 x double]], ptr %86, i64 0, i64 %88
  %90 = load i32, ptr %14, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [258 x double], ptr %89, i64 0, i64 %91
  %93 = load double, ptr %92, align 8, !tbaa !11
  %94 = load i32, ptr %11, align 4, !tbaa !5
  %95 = srem i32 %94, 2
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [2 x [258 x [258 x [258 x double]]]], ptr @A, i64 0, i64 %96
  %98 = load i32, ptr %12, align 4, !tbaa !5
  %99 = sub nsw i32 %98, 1
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [258 x [258 x [258 x double]]], ptr %97, i64 0, i64 %100
  %102 = load i32, ptr %13, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [258 x [258 x double]], ptr %101, i64 0, i64 %103
  %105 = load i32, ptr %14, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [258 x double], ptr %104, i64 0, i64 %106
  %108 = load double, ptr %107, align 8, !tbaa !11
  %109 = load i32, ptr %11, align 4, !tbaa !5
  %110 = srem i32 %109, 2
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [2 x [258 x [258 x [258 x double]]]], ptr @A, i64 0, i64 %111
  %113 = load i32, ptr %12, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [258 x [258 x [258 x double]]], ptr %112, i64 0, i64 %114
  %116 = load i32, ptr %13, align 4, !tbaa !5
  %117 = sub nsw i32 %116, 1
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [258 x [258 x double]], ptr %115, i64 0, i64 %118
  %120 = load i32, ptr %14, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [258 x double], ptr %119, i64 0, i64 %121
  %123 = load double, ptr %122, align 8, !tbaa !11
  %124 = fadd double %108, %123
  %125 = load i32, ptr %11, align 4, !tbaa !5
  %126 = srem i32 %125, 2
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [2 x [258 x [258 x [258 x double]]]], ptr @A, i64 0, i64 %127
  %129 = load i32, ptr %12, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [258 x [258 x [258 x double]]], ptr %128, i64 0, i64 %130
  %132 = load i32, ptr %13, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [258 x [258 x double]], ptr %131, i64 0, i64 %133
  %135 = load i32, ptr %14, align 4, !tbaa !5
  %136 = sub nsw i32 %135, 1
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [258 x double], ptr %134, i64 0, i64 %137
  %139 = load double, ptr %138, align 8, !tbaa !11
  %140 = fadd double %124, %139
  %141 = load i32, ptr %11, align 4, !tbaa !5
  %142 = srem i32 %141, 2
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [2 x [258 x [258 x [258 x double]]]], ptr @A, i64 0, i64 %143
  %145 = load i32, ptr %12, align 4, !tbaa !5
  %146 = add nsw i32 %145, 1
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [258 x [258 x [258 x double]]], ptr %144, i64 0, i64 %147
  %149 = load i32, ptr %13, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [258 x [258 x double]], ptr %148, i64 0, i64 %150
  %152 = load i32, ptr %14, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [258 x double], ptr %151, i64 0, i64 %153
  %155 = load double, ptr %154, align 8, !tbaa !11
  %156 = fadd double %140, %155
  %157 = load i32, ptr %11, align 4, !tbaa !5
  %158 = srem i32 %157, 2
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [2 x [258 x [258 x [258 x double]]]], ptr @A, i64 0, i64 %159
  %161 = load i32, ptr %12, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [258 x [258 x [258 x double]]], ptr %160, i64 0, i64 %162
  %164 = load i32, ptr %13, align 4, !tbaa !5
  %165 = add nsw i32 %164, 1
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [258 x [258 x double]], ptr %163, i64 0, i64 %166
  %168 = load i32, ptr %14, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [258 x double], ptr %167, i64 0, i64 %169
  %171 = load double, ptr %170, align 8, !tbaa !11
  %172 = fadd double %156, %171
  %173 = load i32, ptr %11, align 4, !tbaa !5
  %174 = srem i32 %173, 2
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [2 x [258 x [258 x [258 x double]]]], ptr @A, i64 0, i64 %175
  %177 = load i32, ptr %12, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [258 x [258 x [258 x double]]], ptr %176, i64 0, i64 %178
  %180 = load i32, ptr %13, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [258 x [258 x double]], ptr %179, i64 0, i64 %181
  %183 = load i32, ptr %14, align 4, !tbaa !5
  %184 = add nsw i32 %183, 1
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [258 x double], ptr %182, i64 0, i64 %185
  %187 = load double, ptr %186, align 8, !tbaa !11
  %188 = fadd double %172, %187
  %189 = fmul double 0x3FB395810624DD2F, %188
  %190 = call double @llvm.fmuladd.f64(double 0x3FB66CF41F212D77, double %93, double %189)
  %191 = load i32, ptr %11, align 4, !tbaa !5
  %192 = add nsw i32 %191, 1
  %193 = srem i32 %192, 2
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [2 x [258 x [258 x [258 x double]]]], ptr @A, i64 0, i64 %194
  %196 = load i32, ptr %12, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [258 x [258 x [258 x double]]], ptr %195, i64 0, i64 %197
  %199 = load i32, ptr %13, align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [258 x [258 x double]], ptr %198, i64 0, i64 %200
  %202 = load i32, ptr %14, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [258 x double], ptr %201, i64 0, i64 %203
  store double %190, ptr %204, align 8, !tbaa !11
  br label %205

205:                                              ; preds = %79
  %206 = load i32, ptr %14, align 4, !tbaa !5
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %14, align 4, !tbaa !5
  br label %75, !llvm.loop !17

208:                                              ; preds = %75
  br label %209

209:                                              ; preds = %208
  %210 = load i32, ptr %13, align 4, !tbaa !5
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %13, align 4, !tbaa !5
  br label %70, !llvm.loop !18

212:                                              ; preds = %70
  br label %213

213:                                              ; preds = %212
  %214 = load i32, ptr %12, align 4, !tbaa !5
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %12, align 4, !tbaa !5
  br label %65, !llvm.loop !19

216:                                              ; preds = %65
  br label %217

217:                                              ; preds = %216
  %218 = load i32, ptr %11, align 4, !tbaa !5
  %219 = add nsw i32 %218, 1
  store i32 %219, ptr %11, align 4, !tbaa !5
  br label %60, !llvm.loop !20

220:                                              ; preds = %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  ret i32 0
}

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

; Function Attrs: nounwind
declare void @srand(i32 noundef) #3

; Function Attrs: nounwind
declare i32 @rand() #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 "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 nosync nounwind speculatable willreturn memory(none) }
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/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}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !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"

@.str = external hidden unnamed_addr constant [51 x i8], align 1
@A = external dso_local local_unnamed_addr global [2 x [258 x [258 x [258 x double]]]], align 16

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i64 noundef 256, i64 noundef 200)
  tail call void @srand(i32 noundef 42) #5
  br label %.preheader64

.preheader64:                                     ; preds = %2, %10
  %indvars.iv77 = phi i64 [ 1, %2 ], [ %indvars.iv.next78, %10 ]
  br label %.preheader63

.preheader63:                                     ; preds = %.preheader64, %9
  %indvars.iv73 = phi i64 [ 1, %.preheader64 ], [ %indvars.iv.next74, %9 ]
  br label %4

4:                                                ; preds = %.preheader63, %4
  %indvars.iv = phi i64 [ 1, %.preheader63 ], [ %indvars.iv.next, %4 ]
  %5 = tail call i32 @rand() #5
  %6 = srem i32 %5, 1024
  %7 = sitofp i32 %6 to double
  %8 = getelementptr inbounds [258 x [258 x [258 x double]]], ptr @A, i64 0, i64 %indvars.iv77, i64 %indvars.iv73, i64 %indvars.iv
  store double %7, ptr %8, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 257
  br i1 %exitcond.not, label %9, label %4, !llvm.loop !9

9:                                                ; preds = %4
  %indvars.iv.next74 = add nuw nsw i64 %indvars.iv73, 1
  %exitcond76.not = icmp eq i64 %indvars.iv.next74, 257
  br i1 %exitcond76.not, label %10, label %.preheader63, !llvm.loop !11

10:                                               ; preds = %9
  %indvars.iv.next78 = add nuw nsw i64 %indvars.iv77, 1
  %exitcond80.not = icmp eq i64 %indvars.iv.next78, 257
  br i1 %exitcond80.not, label %.preheader61, label %.preheader64, !llvm.loop !12

.preheader61:                                     ; preds = %10, %62
  %.071 = phi i32 [ %63, %62 ], [ 0, %10 ]
  %11 = and i32 %.071, 1
  %12 = xor i32 %11, 1
  %narrow = mul nuw nsw i32 %12, 137388096
  %13 = zext nneg i32 %narrow to i64
  %14 = trunc i32 %.071 to i1
  %15 = select i1 %14, i64 137388096, i64 0
  %16 = and i32 %.071, 1
  %17 = zext nneg i32 %16 to i64
  %18 = xor i32 %16, 1
  %19 = zext nneg i32 %18 to i64
  %diff.check95 = icmp eq i64 %15, %13
  br label %.preheader60

.preheader60:                                     ; preds = %.preheader61, %61
  %indvars.iv89 = phi i64 [ 1, %.preheader61 ], [ %indvars.iv.next90, %61 ]
  %20 = add nsw i64 %indvars.iv89, -1
  %indvars.iv.next90 = add nuw nsw i64 %indvars.iv89, 1
  br label %.preheader

.preheader:                                       ; preds = %.preheader60, %middle.block
  %indvars.iv85 = phi i64 [ 1, %.preheader60 ], [ %indvars.iv.next86, %middle.block ]
  %21 = add nsw i64 %indvars.iv85, -1
  %indvars.iv.next86 = add nuw nsw i64 %indvars.iv85, 1
  %.phi.trans.insert = getelementptr inbounds [2 x [258 x [258 x [258 x double]]]], ptr @A, i64 0, i64 %17, i64 %indvars.iv89, i64 %indvars.iv85, i64 1
  %.pre = load double, ptr %.phi.trans.insert, align 8, !tbaa !5
  br i1 %diff.check95, label %scalar.ph, label %vector.ph

vector.ph:                                        ; preds = %.preheader
  %vector.recur.init = insertelement <2 x double> poison, double %.pre, i64 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vector.recur = phi <2 x double> [ %vector.recur.init, %vector.ph ], [ %wide.load107, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %22 = getelementptr inbounds [2 x [258 x [258 x [258 x double]]]], ptr @A, i64 0, i64 %17, i64 %20, i64 %indvars.iv85, i64 %offset.idx
  %wide.load = load <2 x double>, ptr %22, align 8, !tbaa !5
  %23 = getelementptr inbounds [2 x [258 x [258 x [258 x double]]]], ptr @A, i64 0, i64 %17, i64 %indvars.iv89, i64 %21, i64 %offset.idx
  %wide.load103 = load <2 x double>, ptr %23, align 8, !tbaa !5
  %24 = fadd <2 x double> %wide.load, %wide.load103
  %25 = getelementptr inbounds [2 x [258 x [258 x [258 x double]]]], ptr @A, i64 0, i64 %17, i64 %indvars.iv89, i64 %indvars.iv85, i64 %index
  %wide.load104 = load <2 x double>, ptr %25, align 16, !tbaa !5
  %26 = fadd <2 x double> %24, %wide.load104
  %27 = getelementptr inbounds [2 x [258 x [258 x [258 x double]]]], ptr @A, i64 0, i64 %17, i64 %indvars.iv.next90, i64 %indvars.iv85, i64 %offset.idx
  %wide.load105 = load <2 x double>, ptr %27, align 8, !tbaa !5
  %28 = fadd <2 x double> %26, %wide.load105
  %29 = getelementptr inbounds [2 x [258 x [258 x [258 x double]]]], ptr @A, i64 0, i64 %17, i64 %indvars.iv89, i64 %indvars.iv.next86, i64 %offset.idx
  %wide.load106 = load <2 x double>, ptr %29, align 8, !tbaa !5
  %30 = fadd <2 x double> %28, %wide.load106
  %31 = add nuw nsw i64 %index, 2
  %32 = getelementptr inbounds [2 x [258 x [258 x [258 x double]]]], ptr @A, i64 0, i64 %17, i64 %indvars.iv89, i64 %indvars.iv85, i64 %31
  %wide.load107 = load <2 x double>, ptr %32, align 16, !tbaa !5
  %33 = shufflevector <2 x double> %vector.recur, <2 x double> %wide.load107, <2 x i32> <i32 1, i32 2>
  %34 = fadd <2 x double> %30, %wide.load107
  %35 = fmul <2 x double> %34, <double 0x3FB395810624DD2F, double 0x3FB395810624DD2F>
  %36 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %33, <2 x double> <double 0x3FB66CF41F212D77, double 0x3FB66CF41F212D77>, <2 x double> %35)
  %37 = getelementptr inbounds [2 x [258 x [258 x [258 x double]]]], ptr @A, i64 0, i64 %19, i64 %indvars.iv89, i64 %indvars.iv85, i64 %offset.idx
  store <2 x double> %36, ptr %37, align 8, !tbaa !5
  %index.next = add nuw i64 %index, 2
  %38 = icmp eq i64 %index.next, 256
  br i1 %38, label %middle.block, label %vector.body, !llvm.loop !13

scalar.ph:                                        ; preds = %.preheader, %scalar.ph
  %39 = phi double [ %56, %scalar.ph ], [ %.pre, %.preheader ]
  %indvars.iv81 = phi i64 [ %indvars.iv.next82, %scalar.ph ], [ 1, %.preheader ]
  %40 = getelementptr inbounds [2 x [258 x [258 x [258 x double]]]], ptr @A, i64 0, i64 %17, i64 %20, i64 %indvars.iv85, i64 %indvars.iv81
  %41 = load double, ptr %40, align 8, !tbaa !5
  %42 = getelementptr inbounds [2 x [258 x [258 x [258 x double]]]], ptr @A, i64 0, i64 %17, i64 %indvars.iv89, i64 %21, i64 %indvars.iv81
  %43 = load double, ptr %42, align 8, !tbaa !5
  %44 = fadd double %41, %43
  %45 = add nsw i64 %indvars.iv81, -1
  %46 = getelementptr inbounds [2 x [258 x [258 x [258 x double]]]], ptr @A, i64 0, i64 %17, i64 %indvars.iv89, i64 %indvars.iv85, i64 %45
  %47 = load double, ptr %46, align 8, !tbaa !5
  %48 = fadd double %44, %47
  %49 = getelementptr inbounds [2 x [258 x [258 x [258 x double]]]], ptr @A, i64 0, i64 %17, i64 %indvars.iv.next90, i64 %indvars.iv85, i64 %indvars.iv81
  %50 = load double, ptr %49, align 8, !tbaa !5
  %51 = fadd double %48, %50
  %52 = getelementptr inbounds [2 x [258 x [258 x [258 x double]]]], ptr @A, i64 0, i64 %17, i64 %indvars.iv89, i64 %indvars.iv.next86, i64 %indvars.iv81
  %53 = load double, ptr %52, align 8, !tbaa !5
  %54 = fadd double %51, %53
  %indvars.iv.next82 = add nuw nsw i64 %indvars.iv81, 1
  %55 = getelementptr inbounds [2 x [258 x [258 x [258 x double]]]], ptr @A, i64 0, i64 %17, i64 %indvars.iv89, i64 %indvars.iv85, i64 %indvars.iv.next82
  %56 = load double, ptr %55, align 8, !tbaa !5
  %57 = fadd double %54, %56
  %58 = fmul double %57, 0x3FB395810624DD2F
  %59 = tail call double @llvm.fmuladd.f64(double %39, double 0x3FB66CF41F212D77, double %58)
  %60 = getelementptr inbounds [2 x [258 x [258 x [258 x double]]]], ptr @A, i64 0, i64 %19, i64 %indvars.iv89, i64 %indvars.iv85, i64 %indvars.iv81
  store double %59, ptr %60, align 8, !tbaa !5
  %exitcond84.not = icmp eq i64 %indvars.iv.next82, 257
  br i1 %exitcond84.not, label %middle.block, label %scalar.ph, !llvm.loop !16

middle.block:                                     ; preds = %vector.body, %scalar.ph
  %exitcond88.not = icmp eq i64 %indvars.iv.next86, 257
  br i1 %exitcond88.not, label %61, label %.preheader, !llvm.loop !17

61:                                               ; preds = %middle.block
  %exitcond92.not = icmp eq i64 %indvars.iv.next90, 257
  br i1 %exitcond92.not, label %62, label %.preheader60, !llvm.loop !18

62:                                               ; preds = %61
  %63 = add nuw nsw i32 %.071, 1
  %exitcond93.not = icmp eq i32 %63, 199
  br i1 %exitcond93.not, label %64, label %.preheader61, !llvm.loop !19

64:                                               ; preds = %62
  ret i32 0
}

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

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #4

attributes #0 = { 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 = { 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 #2 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10, !14, !15}
!14 = !{!"llvm.loop.isvectorized", i32 1}
!15 = !{!"llvm.loop.unroll.runtime.disable"}
!16 = distinct !{!16, !10, !14}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass