; LLVM IR from stan-dev/math :: lib/boost_1.84.0/libs/numeric/odeint/performance (c_lorenz)

; 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 [25 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @lorenz(ptr noundef, ptr noalias noundef) #0

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca [3 x double], align 16
  %11 = alloca [3 x double], align 16
  %12 = alloca [3 x double], align 16
  %13 = alloca [3 x double], align 16
  %14 = alloca [3 x double], align 16
  %15 = alloca [3 x double], align 16
  %16 = alloca double, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca double, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  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 20000000, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store double 1.000000e-10, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store double 5.000000e-11, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store double 2.100000e+01, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store double 1.000000e+06, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %171, %2
  %28 = load i32, ptr %20, align 4, !tbaa !5
  %29 = sitofp i32 %28 to double
  %30 = fcmp olt double %29, 2.100000e+01
  br i1 %30, label %32, label %31

31:                                               ; preds = %27
  store i32 2, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %174

32:                                               ; preds = %27
  %33 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
  store double 8.500000e+00, ptr %33, align 16, !tbaa !11
  %34 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 1
  store double 3.100000e+00, ptr %34, align 8, !tbaa !11
  %35 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 2
  store double 1.200000e+00, ptr %35, align 16, !tbaa !11
  %36 = call i64 @clock() #5
  store i64 %36, ptr %17, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %151, %32
  %38 = load i32, ptr %22, align 4, !tbaa !5
  %39 = icmp slt i32 %38, 20000000
  br i1 %39, label %41, label %40

40:                                               ; preds = %37
  store i32 5, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %154

41:                                               ; preds = %37
  %42 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
  %43 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 0
  call void @lorenz(ptr noundef %42, ptr noundef %43)
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %61, %41
  %45 = load i32, ptr %23, align 4, !tbaa !5
  %46 = icmp slt i32 %45, 3
  br i1 %46, label %48, label %47

47:                                               ; preds = %44
  store i32 8, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %64

48:                                               ; preds = %44
  %49 = load i32, ptr %23, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 %50
  %52 = load double, ptr %51, align 8, !tbaa !11
  %53 = load i32, ptr %23, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 %54
  %56 = load double, ptr %55, align 8, !tbaa !11
  %57 = call double @llvm.fmuladd.f64(double 5.000000e-11, double %56, double %52)
  %58 = load i32, ptr %23, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 %59
  store double %57, ptr %60, align 8, !tbaa !11
  br label %61

61:                                               ; preds = %48
  %62 = load i32, ptr %23, align 4, !tbaa !5
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %23, align 4, !tbaa !5
  br label %44, !llvm.loop !15

64:                                               ; preds = %47
  %65 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 0
  %66 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 0
  call void @lorenz(ptr noundef %65, ptr noundef %66)
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %84, %64
  %68 = load i32, ptr %24, align 4, !tbaa !5
  %69 = icmp slt i32 %68, 3
  br i1 %69, label %71, label %70

70:                                               ; preds = %67
  store i32 11, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %87

71:                                               ; preds = %67
  %72 = load i32, ptr %24, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 %73
  %75 = load double, ptr %74, align 8, !tbaa !11
  %76 = load i32, ptr %24, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !11
  %80 = call double @llvm.fmuladd.f64(double 5.000000e-11, double %79, double %75)
  %81 = load i32, ptr %24, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 %82
  store double %80, ptr %83, align 8, !tbaa !11
  br label %84

84:                                               ; preds = %71
  %85 = load i32, ptr %24, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %24, align 4, !tbaa !5
  br label %67, !llvm.loop !17

87:                                               ; preds = %70
  %88 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 0
  %89 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 0
  call void @lorenz(ptr noundef %88, ptr noundef %89)
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 0, ptr %25, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %107, %87
  %91 = load i32, ptr %25, align 4, !tbaa !5
  %92 = icmp slt i32 %91, 3
  br i1 %92, label %94, label %93

93:                                               ; preds = %90
  store i32 14, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %110

94:                                               ; preds = %90
  %95 = load i32, ptr %25, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 %96
  %98 = load double, ptr %97, align 8, !tbaa !11
  %99 = load i32, ptr %25, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 %100
  %102 = load double, ptr %101, align 8, !tbaa !11
  %103 = call double @llvm.fmuladd.f64(double 1.000000e-10, double %102, double %98)
  %104 = load i32, ptr %25, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 %105
  store double %103, ptr %106, align 8, !tbaa !11
  br label %107

107:                                              ; preds = %94
  %108 = load i32, ptr %25, align 4, !tbaa !5
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %25, align 4, !tbaa !5
  br label %90, !llvm.loop !18

110:                                              ; preds = %93
  %111 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 0
  %112 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 0
  call void @lorenz(ptr noundef %111, ptr noundef %112)
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %113

113:                                              ; preds = %147, %110
  %114 = load i32, ptr %26, align 4, !tbaa !5
  %115 = icmp slt i32 %114, 3
  br i1 %115, label %117, label %116

116:                                              ; preds = %113
  store i32 17, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %150

117:                                              ; preds = %113
  %118 = load i32, ptr %26, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 %119
  %121 = load double, ptr %120, align 8, !tbaa !11
  %122 = load i32, ptr %26, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 %123
  %125 = load double, ptr %124, align 8, !tbaa !11
  %126 = load i32, ptr %26, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 %127
  %129 = load double, ptr %128, align 8, !tbaa !11
  %130 = load i32, ptr %26, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 %131
  %133 = load double, ptr %132, align 8, !tbaa !11
  %134 = fadd double %129, %133
  %135 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %134, double %125)
  %136 = load i32, ptr %26, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 %137
  %139 = load double, ptr %138, align 8, !tbaa !11
  %140 = fadd double %135, %139
  %141 = fmul double 1.000000e-10, %140
  %142 = fdiv double %141, 6.000000e+00
  %143 = fadd double %121, %142
  %144 = load i32, ptr %26, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 %145
  store double %143, ptr %146, align 8, !tbaa !11
  br label %147

147:                                              ; preds = %117
  %148 = load i32, ptr %26, align 4, !tbaa !5
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %26, align 4, !tbaa !5
  br label %113, !llvm.loop !19

150:                                              ; preds = %116
  br label %151

151:                                              ; preds = %150
  %152 = load i32, ptr %22, align 4, !tbaa !5
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %22, align 4, !tbaa !5
  br label %37, !llvm.loop !20

154:                                              ; preds = %40
  %155 = call i64 @clock() #5
  store i64 %155, ptr %18, align 8, !tbaa !13
  %156 = load double, ptr %16, align 8, !tbaa !11
  %157 = load i64, ptr %18, align 8, !tbaa !13
  %158 = load i64, ptr %17, align 8, !tbaa !13
  %159 = sub nsw i64 %157, %158
  %160 = sitofp i64 %159 to double
  %161 = fdiv double %160, 1.000000e+06
  %162 = call double @llvm.minnum.f64(double %156, double %161)
  store double %162, ptr %16, align 8, !tbaa !11
  %163 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
  %164 = load double, ptr %163, align 16, !tbaa !11
  %165 = load i64, ptr %18, align 8, !tbaa !13
  %166 = load i64, ptr %17, align 8, !tbaa !13
  %167 = sub nsw i64 %165, %166
  %168 = sitofp i64 %167 to double
  %169 = fdiv double %168, 1.000000e+06
  %170 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %164, double noundef %169)
  br label %171

171:                                              ; preds = %154
  %172 = load i32, ptr %20, align 4, !tbaa !5
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %20, align 4, !tbaa !5
  br label %27, !llvm.loop !21

174:                                              ; preds = %31
  %175 = load double, ptr %16, align 8, !tbaa !11
  %176 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %175)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  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 24, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %177 = load i32, ptr %3, align 4
  ret i32 %177
}

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

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

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

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

declare i32 @printf(ptr noundef, ...) #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}


; 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 [25 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @lorenz(ptr noundef, ptr noalias noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca [3 x double], align 16
  %4 = alloca [3 x double], align 16
  %5 = alloca [3 x double], align 16
  %6 = alloca [3 x double], align 16
  %7 = alloca [3 x double], align 16
  %8 = alloca [3 x double], align 16
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  %9 = getelementptr inbounds i8, ptr %3, i64 16
  %10 = getelementptr inbounds i8, ptr %5, i64 16
  %11 = getelementptr inbounds i8, ptr %4, i64 16
  %12 = getelementptr inbounds i8, ptr %6, i64 16
  %13 = getelementptr inbounds i8, ptr %7, i64 16
  %14 = getelementptr inbounds i8, ptr %8, i64 16
  br label %17

15:                                               ; preds = %19
  %16 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %24)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  ret i32 0

17:                                               ; preds = %2, %19
  %.03745 = phi i32 [ 0, %2 ], [ %27, %19 ]
  %.03844 = phi double [ 1.000000e+06, %2 ], [ %24, %19 ]
  store <2 x double> <double 8.500000e+00, double 3.100000e+00>, ptr %3, align 16, !tbaa !5
  store double 1.200000e+00, ptr %9, align 16, !tbaa !5
  %18 = call i64 @clock() #6
  br label %28

19:                                               ; preds = %28
  %20 = call i64 @clock() #6
  %21 = sub nsw i64 %20, %18
  %22 = sitofp i64 %21 to double
  %23 = fdiv double %22, 1.000000e+06
  %24 = call double @llvm.minnum.f64(double %.03844, double %23)
  %25 = load double, ptr %3, align 16, !tbaa !5
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %25, double noundef %23)
  %27 = add nuw nsw i32 %.03745, 1
  %exitcond50.not = icmp eq i32 %27, 21
  br i1 %exitcond50.not, label %15, label %17, !llvm.loop !9

28:                                               ; preds = %17, %28
  %.03643 = phi i32 [ 0, %17 ], [ %69, %28 ]
  call void @lorenz(ptr noundef nonnull %3, ptr noundef nonnull %5)
  %29 = load <2 x double>, ptr %3, align 16, !tbaa !5
  %30 = load <2 x double>, ptr %5, align 16, !tbaa !5
  %31 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %30, <2 x double> <double 5.000000e-11, double 5.000000e-11>, <2 x double> %29)
  store <2 x double> %31, ptr %4, align 16, !tbaa !5
  %32 = load double, ptr %9, align 16, !tbaa !5
  %33 = load double, ptr %10, align 16, !tbaa !5
  %34 = call double @llvm.fmuladd.f64(double %33, double 5.000000e-11, double %32)
  store double %34, ptr %11, align 16, !tbaa !5
  call void @lorenz(ptr noundef nonnull %4, ptr noundef nonnull %6)
  %35 = load <2 x double>, ptr %3, align 16, !tbaa !5
  %36 = load <2 x double>, ptr %6, align 16, !tbaa !5
  %37 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %36, <2 x double> <double 5.000000e-11, double 5.000000e-11>, <2 x double> %35)
  store <2 x double> %37, ptr %4, align 16, !tbaa !5
  %38 = load double, ptr %9, align 16, !tbaa !5
  %39 = load double, ptr %12, align 16, !tbaa !5
  %40 = call double @llvm.fmuladd.f64(double %39, double 5.000000e-11, double %38)
  store double %40, ptr %11, align 16, !tbaa !5
  call void @lorenz(ptr noundef nonnull %4, ptr noundef nonnull %7)
  %41 = load <2 x double>, ptr %3, align 16, !tbaa !5
  %42 = load <2 x double>, ptr %7, align 16, !tbaa !5
  %43 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %42, <2 x double> <double 1.000000e-10, double 1.000000e-10>, <2 x double> %41)
  store <2 x double> %43, ptr %4, align 16, !tbaa !5
  %44 = load double, ptr %9, align 16, !tbaa !5
  %45 = load double, ptr %13, align 16, !tbaa !5
  %46 = call double @llvm.fmuladd.f64(double %45, double 1.000000e-10, double %44)
  store double %46, ptr %11, align 16, !tbaa !5
  call void @lorenz(ptr noundef nonnull %4, ptr noundef nonnull %8)
  %47 = load <2 x double>, ptr %3, align 16, !tbaa !5
  %48 = load <2 x double>, ptr %5, align 16, !tbaa !5
  %49 = load <2 x double>, ptr %6, align 16, !tbaa !5
  %50 = load <2 x double>, ptr %7, align 16, !tbaa !5
  %51 = fadd <2 x double> %49, %50
  %52 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %51, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %48)
  %53 = load <2 x double>, ptr %8, align 16, !tbaa !5
  %54 = fadd <2 x double> %53, %52
  %55 = fmul <2 x double> %54, <double 1.000000e-10, double 1.000000e-10>
  %56 = fdiv <2 x double> %55, <double 6.000000e+00, double 6.000000e+00>
  %57 = fadd <2 x double> %47, %56
  store <2 x double> %57, ptr %3, align 16, !tbaa !5
  %58 = load double, ptr %9, align 16, !tbaa !5
  %59 = load double, ptr %10, align 16, !tbaa !5
  %60 = load double, ptr %12, align 16, !tbaa !5
  %61 = load double, ptr %13, align 16, !tbaa !5
  %62 = fadd double %60, %61
  %63 = call double @llvm.fmuladd.f64(double %62, double 2.000000e+00, double %59)
  %64 = load double, ptr %14, align 16, !tbaa !5
  %65 = fadd double %64, %63
  %66 = fmul double %65, 1.000000e-10
  %67 = fdiv double %66, 6.000000e+00
  %68 = fadd double %58, %67
  store double %68, ptr %9, align 16, !tbaa !5
  %69 = add nuw nsw i32 %.03643, 1
  %exitcond.not = icmp eq i32 %69, 20000000
  br i1 %exitcond.not, label %19, label %28, !llvm.loop !11
}

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

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

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

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

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

; 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>) #5

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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"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}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass