; LLVM IR from ptiwari0664/RoboticsSoftwareEngineer :: Chapter3_Localization/1DKalmanFilter (1DKalmanFilter)

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

%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.0", %"struct.std::_Head_base.1" }
%"struct.std::_Tuple_impl.0" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { double }
%"struct.std::_Head_base.1" = type { double }
%"class.std::tuple.2" = type { %"struct.std::_Tuple_impl.3" }
%"struct.std::_Tuple_impl.3" = type { %"struct.std::_Tuple_impl.4", %"struct.std::_Head_base.6" }
%"struct.std::_Tuple_impl.4" = type { %"struct.std::_Head_base.5" }
%"struct.std::_Head_base.5" = type { ptr }
%"struct.std::_Head_base.6" = type { ptr }

@.str = external hidden unnamed_addr constant [19 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z18measurement_updatedddd(ptr dead_on_unwind noalias writable sret(%"class.std::tuple") align 8, double noundef, double noundef, double noundef, double noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z16state_predictiondddd(ptr dead_on_unwind noalias writable sret(%"class.std::tuple") align 8, double noundef, double noundef, double noundef, double noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca [5 x double], align 16
  %3 = alloca double, align 8
  %4 = alloca [5 x double], align 16
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::tuple", align 8
  %10 = alloca %"class.std::tuple.2", align 8
  %11 = alloca %"class.std::tuple", align 8
  %12 = alloca %"class.std::tuple.2", align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 40, ptr %2) #6
  call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 40, i1 false)
  %13 = getelementptr inbounds [5 x double], ptr %2, i32 0, i32 0
  store double 5.000000e+00, ptr %13, align 16
  %14 = getelementptr inbounds [5 x double], ptr %2, i32 0, i32 1
  store double 6.000000e+00, ptr %14, align 8
  %15 = getelementptr inbounds [5 x double], ptr %2, i32 0, i32 2
  store double 7.000000e+00, ptr %15, align 16
  %16 = getelementptr inbounds [5 x double], ptr %2, i32 0, i32 3
  store double 9.000000e+00, ptr %16, align 8
  %17 = getelementptr inbounds [5 x double], ptr %2, i32 0, i32 4
  store double 1.000000e+01, ptr %17, align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  store double 4.000000e+00, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %4) #6
  call void @llvm.memset.p0.i64(ptr align 16 %4, i8 0, i64 40, i1 false)
  %18 = getelementptr inbounds [5 x double], ptr %4, i32 0, i32 0
  store double 1.000000e+00, ptr %18, align 16
  %19 = getelementptr inbounds [5 x double], ptr %4, i32 0, i32 1
  store double 1.000000e+00, ptr %19, align 8
  %20 = getelementptr inbounds [5 x double], ptr %4, i32 0, i32 2
  store double 2.000000e+00, ptr %20, align 16
  %21 = getelementptr inbounds [5 x double], ptr %4, i32 0, i32 3
  store double 1.000000e+00, ptr %21, align 8
  %22 = getelementptr inbounds [5 x double], ptr %4, i32 0, i32 4
  store double 1.000000e+00, ptr %22, align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store double 2.000000e+00, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store double 1.000000e+03, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %23

23:                                               ; preds = %50, %0
  %24 = load i32, ptr %8, align 4, !tbaa !9
  %25 = icmp slt i32 %24, 5
  br i1 %25, label %27, label %26

26:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %53

27:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  %28 = load double, ptr %6, align 8, !tbaa !5
  %29 = load double, ptr %7, align 8, !tbaa !5
  %30 = load i32, ptr %8, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [5 x double], ptr %2, i64 0, i64 %31
  %33 = load double, ptr %32, align 8, !tbaa !5
  %34 = load double, ptr %3, align 8, !tbaa !5
  call void @_Z18measurement_updatedddd(ptr dead_on_unwind writable sret(%"class.std::tuple") align 8 %9, double noundef %28, double noundef %29, double noundef %33, double noundef %34)
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  call void @_ZSt3tieIJddEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind writable sret(%"class.std::tuple.2") align 8 %10, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRdS0_EEaSIddEENSt9enable_ifIXcl12__assignableIT_T0_EEERS1_E4typeEOS_IJS4_S5_EE(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  %36 = load double, ptr %6, align 8, !tbaa !5
  %37 = load double, ptr %7, align 8, !tbaa !5
  %38 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %36, double noundef %37)
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %39 = load double, ptr %6, align 8, !tbaa !5
  %40 = load double, ptr %7, align 8, !tbaa !5
  %41 = load i32, ptr %8, align 4, !tbaa !9
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [5 x double], ptr %4, i64 0, i64 %42
  %44 = load double, ptr %43, align 8, !tbaa !5
  %45 = load double, ptr %5, align 8, !tbaa !5
  call void @_Z16state_predictiondddd(ptr dead_on_unwind writable sret(%"class.std::tuple") align 8 %11, double noundef %39, double noundef %40, double noundef %44, double noundef %45)
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  call void @_ZSt3tieIJddEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind writable sret(%"class.std::tuple.2") align 8 %12, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  %46 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRdS0_EEaSIddEENSt9enable_ifIXcl12__assignableIT_T0_EEERS1_E4typeEOS_IJS4_S5_EE(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  %47 = load double, ptr %6, align 8, !tbaa !5
  %48 = load double, ptr %7, align 8, !tbaa !5
  %49 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %47, double noundef %48)
  br label %50

50:                                               ; preds = %27
  %51 = load i32, ptr %8, align 4, !tbaa !9
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %8, align 4, !tbaa !9
  br label %23, !llvm.loop !11

53:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %2) #6
  ret i32 0
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt3tieIJddEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple.2") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRdS0_EEaSIddEENSt9enable_ifIXcl12__assignableIT_T0_EEERS1_E4typeEOS_IJS4_S5_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

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

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

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


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

%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.0", %"struct.std::_Head_base.1" }
%"struct.std::_Tuple_impl.0" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { double }
%"struct.std::_Head_base.1" = type { double }
%"class.std::tuple.2" = type { %"struct.std::_Tuple_impl.3" }
%"struct.std::_Tuple_impl.3" = type { %"struct.std::_Tuple_impl.4", %"struct.std::_Head_base.6" }
%"struct.std::_Tuple_impl.4" = type { %"struct.std::_Head_base.5" }
%"struct.std::_Head_base.5" = type { ptr }
%"struct.std::_Head_base.6" = type { ptr }

@.str = external hidden unnamed_addr constant [19 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z18measurement_updatedddd(ptr dead_on_unwind noalias writable sret(%"class.std::tuple") align 8, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z16state_predictiondddd(ptr dead_on_unwind noalias writable sret(%"class.std::tuple") align 8, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca double, align 8
  %2 = alloca double, align 8
  %3 = alloca %"class.std::tuple", align 8
  %4 = alloca %"class.std::tuple.2", align 8
  %5 = alloca %"class.std::tuple", align 8
  %6 = alloca %"class.std::tuple.2", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  store double 0.000000e+00, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  store double 1.000000e+03, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  call void @_Z18measurement_updatedddd(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 8 %3, double noundef 0.000000e+00, double noundef 1.000000e+03, double noundef 5.000000e+00, double noundef 4.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  call void @_ZSt3tieIJddEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.2") align 8 %4, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRdS0_EEaSIddEENSt9enable_ifIXcl12__assignableIT_T0_EEERS1_E4typeEOS_IJS4_S5_EE(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  %8 = load double, ptr %1, align 8, !tbaa !5
  %9 = load double, ptr %2, align 8, !tbaa !5
  %10 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %8, double noundef %9)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  %11 = load double, ptr %1, align 8, !tbaa !5
  %12 = load double, ptr %2, align 8, !tbaa !5
  call void @_Z16state_predictiondddd(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 8 %5, double noundef %11, double noundef %12, double noundef 1.000000e+00, double noundef 2.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  call void @_ZSt3tieIJddEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.2") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRdS0_EEaSIddEENSt9enable_ifIXcl12__assignableIT_T0_EEERS1_E4typeEOS_IJS4_S5_EE(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  %14 = load double, ptr %1, align 8, !tbaa !5
  %15 = load double, ptr %2, align 8, !tbaa !5
  %16 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %14, double noundef %15)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  %17 = load double, ptr %1, align 8, !tbaa !5
  %18 = load double, ptr %2, align 8, !tbaa !5
  call void @_Z18measurement_updatedddd(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 8 %3, double noundef %17, double noundef %18, double noundef 6.000000e+00, double noundef 4.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  call void @_ZSt3tieIJddEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.2") align 8 %4, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRdS0_EEaSIddEENSt9enable_ifIXcl12__assignableIT_T0_EEERS1_E4typeEOS_IJS4_S5_EE(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  %20 = load double, ptr %1, align 8, !tbaa !5
  %21 = load double, ptr %2, align 8, !tbaa !5
  %22 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %20, double noundef %21)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  %23 = load double, ptr %1, align 8, !tbaa !5
  %24 = load double, ptr %2, align 8, !tbaa !5
  call void @_Z16state_predictiondddd(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 8 %5, double noundef %23, double noundef %24, double noundef 1.000000e+00, double noundef 2.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  call void @_ZSt3tieIJddEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.2") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRdS0_EEaSIddEENSt9enable_ifIXcl12__assignableIT_T0_EEERS1_E4typeEOS_IJS4_S5_EE(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  %26 = load double, ptr %1, align 8, !tbaa !5
  %27 = load double, ptr %2, align 8, !tbaa !5
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %26, double noundef %27)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  %29 = load double, ptr %1, align 8, !tbaa !5
  %30 = load double, ptr %2, align 8, !tbaa !5
  call void @_Z18measurement_updatedddd(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 8 %3, double noundef %29, double noundef %30, double noundef 7.000000e+00, double noundef 4.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  call void @_ZSt3tieIJddEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.2") align 8 %4, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRdS0_EEaSIddEENSt9enable_ifIXcl12__assignableIT_T0_EEERS1_E4typeEOS_IJS4_S5_EE(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  %32 = load double, ptr %1, align 8, !tbaa !5
  %33 = load double, ptr %2, align 8, !tbaa !5
  %34 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %32, double noundef %33)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  %35 = load double, ptr %1, align 8, !tbaa !5
  %36 = load double, ptr %2, align 8, !tbaa !5
  call void @_Z16state_predictiondddd(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 8 %5, double noundef %35, double noundef %36, double noundef 2.000000e+00, double noundef 2.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  call void @_ZSt3tieIJddEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.2") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRdS0_EEaSIddEENSt9enable_ifIXcl12__assignableIT_T0_EEERS1_E4typeEOS_IJS4_S5_EE(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  %38 = load double, ptr %1, align 8, !tbaa !5
  %39 = load double, ptr %2, align 8, !tbaa !5
  %40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %38, double noundef %39)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  %41 = load double, ptr %1, align 8, !tbaa !5
  %42 = load double, ptr %2, align 8, !tbaa !5
  call void @_Z18measurement_updatedddd(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 8 %3, double noundef %41, double noundef %42, double noundef 9.000000e+00, double noundef 4.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  call void @_ZSt3tieIJddEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.2") align 8 %4, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %43 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRdS0_EEaSIddEENSt9enable_ifIXcl12__assignableIT_T0_EEERS1_E4typeEOS_IJS4_S5_EE(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  %44 = load double, ptr %1, align 8, !tbaa !5
  %45 = load double, ptr %2, align 8, !tbaa !5
  %46 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %44, double noundef %45)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  %47 = load double, ptr %1, align 8, !tbaa !5
  %48 = load double, ptr %2, align 8, !tbaa !5
  call void @_Z16state_predictiondddd(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 8 %5, double noundef %47, double noundef %48, double noundef 1.000000e+00, double noundef 2.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  call void @_ZSt3tieIJddEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.2") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRdS0_EEaSIddEENSt9enable_ifIXcl12__assignableIT_T0_EEERS1_E4typeEOS_IJS4_S5_EE(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  %50 = load double, ptr %1, align 8, !tbaa !5
  %51 = load double, ptr %2, align 8, !tbaa !5
  %52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %50, double noundef %51)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  %53 = load double, ptr %1, align 8, !tbaa !5
  %54 = load double, ptr %2, align 8, !tbaa !5
  call void @_Z18measurement_updatedddd(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 8 %3, double noundef %53, double noundef %54, double noundef 1.000000e+01, double noundef 4.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  call void @_ZSt3tieIJddEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.2") align 8 %4, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %55 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRdS0_EEaSIddEENSt9enable_ifIXcl12__assignableIT_T0_EEERS1_E4typeEOS_IJS4_S5_EE(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  %56 = load double, ptr %1, align 8, !tbaa !5
  %57 = load double, ptr %2, align 8, !tbaa !5
  %58 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %56, double noundef %57)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  %59 = load double, ptr %1, align 8, !tbaa !5
  %60 = load double, ptr %2, align 8, !tbaa !5
  call void @_Z16state_predictiondddd(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 8 %5, double noundef %59, double noundef %60, double noundef 1.000000e+00, double noundef 2.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  call void @_ZSt3tieIJddEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.2") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %61 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRdS0_EEaSIddEENSt9enable_ifIXcl12__assignableIT_T0_EEERS1_E4typeEOS_IJS4_S5_EE(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  %62 = load double, ptr %1, align 8, !tbaa !5
  %63 = load double, ptr %2, align 8, !tbaa !5
  %64 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %62, double noundef %63)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  ret i32 0
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt3tieIJddEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple.2") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRdS0_EEaSIddEENSt9enable_ifIXcl12__assignableIT_T0_EEERS1_E4typeEOS_IJS4_S5_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass