; LLVM IR from romerojosh/zefr :: src/funcs.ll (Z15compute_dU_trueddddjjPK11InputStruct)

; 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.InputStruct = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i8, i8, i8, i8, i8, i8, i8, i8, %"class.std::vector", %"class.std::vector", i32, i32, double, double, double, double, double, double, double, double, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, i32, i32, double, double, i32, double, double, double, double, double, double, double, double, i16, i16, i16, i16, i32, i32, i32, %"class.std::__cxx11::basic_string", i8, i8, i8, i8, i32, i32, i8, i8, i8, i8, i32, i32, i32, i32, %"class.std::vector.11", %"class.std::vector.16", double, double, double, double, double, double, [3 x double], double, [3 x double], [3 x double], [3 x double], [3 x double], double, [3 x double], [3 x double], double, [9 x double], %"class.std::map.21", i8, i8, i8, i8, i8, i8, i8, i8, double, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, double, double, %class.Timer }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.mdvector = type <{ i32, [4 x i8], i64, i64, %"struct.std::array", %"struct.std::array", %"class.std::vector.6", ptr, i8, [7 x i8] }>
%"struct.std::array" = type { [6 x i32] }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map.21" = type { %"class.std::_Rb_tree.22" }
%"class.std::_Rb_tree.22" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%class.Timer = type { %"class.std::chrono::time_point", %"class.std::chrono::time_point", double, %"class.std::__cxx11::basic_string" }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }

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

; Function Attrs: nounwind
declare double @sin(double noundef) #1

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

; Function Attrs: nounwind
declare double @exp(double noundef) #1

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

; Function Attrs: nounwind
declare double @cos(double noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105), i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_Z15compute_dU_trueddddjjPK11InputStruct(double noundef %0, double noundef %1, double noundef %2, double noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6) #4 {
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca double, align 8
  store double %0, ptr %8, align 8, !tbaa !5
  store double %1, ptr %9, align 8, !tbaa !5
  store double %2, ptr %10, align 8, !tbaa !5
  store double %3, ptr %11, align 8, !tbaa !5
  store i32 %4, ptr %12, align 4, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !9
  store ptr %6, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store double 0.000000e+00, ptr %15, align 8, !tbaa !5
  %16 = load ptr, ptr %14, align 8, !tbaa !11
  %17 = getelementptr inbounds %struct.InputStruct, ptr %16, i32 0, i32 0
  %18 = load i32, ptr %17, align 8, !tbaa !13
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %20, label %99

20:                                               ; preds = %7
  %21 = load ptr, ptr %14, align 8, !tbaa !11
  %22 = getelementptr inbounds %struct.InputStruct, ptr %21, i32 0, i32 4
  %23 = load i32, ptr %22, align 8, !tbaa !49
  %24 = icmp eq i32 %23, 2
  br i1 %24, label %25, label %91

25:                                               ; preds = %20
  %26 = load i32, ptr %13, align 4, !tbaa !9
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %59

28:                                               ; preds = %25
  %29 = load ptr, ptr %14, align 8, !tbaa !11
  %30 = getelementptr inbounds %struct.InputStruct, ptr %29, i32 0, i32 39
  %31 = load double, ptr %30, align 8, !tbaa !50
  %32 = fmul double -2.000000e+00, %31
  %33 = fmul double %32, 0x400921FB54442D18
  %34 = fmul double %33, 0x400921FB54442D18
  %35 = load double, ptr %11, align 8, !tbaa !5
  %36 = fmul double %34, %35
  %37 = call double @exp(double noundef %36) #5
  %38 = load double, ptr %9, align 8, !tbaa !5
  %39 = load ptr, ptr %14, align 8, !tbaa !11
  %40 = getelementptr inbounds %struct.InputStruct, ptr %39, i32 0, i32 44
  %41 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %40, i32 noundef 1)
  %42 = load double, ptr %11, align 8, !tbaa !5
  %43 = fneg double %41
  %44 = call double @llvm.fmuladd.f64(double %43, double %42, double %38)
  %45 = fmul double 0x400921FB54442D18, %44
  %46 = call double @sin(double noundef %45) #5
  %47 = fmul double %37, %46
  %48 = fmul double %47, 0x400921FB54442D18
  %49 = load double, ptr %8, align 8, !tbaa !5
  %50 = load ptr, ptr %14, align 8, !tbaa !11
  %51 = getelementptr inbounds %struct.InputStruct, ptr %50, i32 0, i32 44
  %52 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %51, i32 noundef 0)
  %53 = load double, ptr %11, align 8, !tbaa !5
  %54 = fneg double %52
  %55 = call double @llvm.fmuladd.f64(double %54, double %53, double %49)
  %56 = fmul double 0x400921FB54442D18, %55
  %57 = call double @cos(double noundef %56) #5
  %58 = fmul double %48, %57
  store double %58, ptr %15, align 8, !tbaa !5
  br label %90

59:                                               ; preds = %25
  %60 = load ptr, ptr %14, align 8, !tbaa !11
  %61 = getelementptr inbounds %struct.InputStruct, ptr %60, i32 0, i32 39
  %62 = load double, ptr %61, align 8, !tbaa !50
  %63 = fmul double -2.000000e+00, %62
  %64 = fmul double %63, 0x400921FB54442D18
  %65 = fmul double %64, 0x400921FB54442D18
  %66 = load double, ptr %11, align 8, !tbaa !5
  %67 = fmul double %65, %66
  %68 = call double @exp(double noundef %67) #5
  %69 = load double, ptr %8, align 8, !tbaa !5
  %70 = load ptr, ptr %14, align 8, !tbaa !11
  %71 = getelementptr inbounds %struct.InputStruct, ptr %70, i32 0, i32 44
  %72 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %71, i32 noundef 0)
  %73 = load double, ptr %11, align 8, !tbaa !5
  %74 = fneg double %72
  %75 = call double @llvm.fmuladd.f64(double %74, double %73, double %69)
  %76 = fmul double 0x400921FB54442D18, %75
  %77 = call double @sin(double noundef %76) #5
  %78 = fmul double %68, %77
  %79 = fmul double %78, 0x400921FB54442D18
  %80 = load double, ptr %9, align 8, !tbaa !5
  %81 = load ptr, ptr %14, align 8, !tbaa !11
  %82 = getelementptr inbounds %struct.InputStruct, ptr %81, i32 0, i32 44
  %83 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %82, i32 noundef 1)
  %84 = load double, ptr %11, align 8, !tbaa !5
  %85 = fneg double %83
  %86 = call double @llvm.fmuladd.f64(double %85, double %84, double %80)
  %87 = fmul double 0x400921FB54442D18, %86
  %88 = call double @cos(double noundef %87) #5
  %89 = fmul double %79, %88
  store double %89, ptr %15, align 8, !tbaa !5
  br label %90

90:                                               ; preds = %59, %28
  br label %98

91:                                               ; preds = %20
  %92 = load ptr, ptr %14, align 8, !tbaa !11
  %93 = getelementptr inbounds %struct.InputStruct, ptr %92, i32 0, i32 4
  %94 = load i32, ptr %93, align 8, !tbaa !49
  %95 = icmp eq i32 %94, 3
  br i1 %95, label %96, label %97

96:                                               ; preds = %91
  store double 0.000000e+00, ptr %15, align 8, !tbaa !5
  br label %97

97:                                               ; preds = %96, %91
  br label %98

98:                                               ; preds = %97, %90
  br label %100

99:                                               ; preds = %7
  store double 0.000000e+00, ptr %15, align 8, !tbaa !5
  br label %100

100:                                              ; preds = %99, %98
  %101 = load double, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  ret double %101
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #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"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTS11InputStruct", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !15, i64 72, !15, i64 104, !15, i64 136, !15, i64 168, !15, i64 200, !15, i64 232, !18, i64 264, !18, i64 265, !18, i64 266, !18, i64 267, !18, i64 268, !18, i64 269, !18, i64 270, !18, i64 271, !19, i64 272, !19, i64 296, !10, i64 320, !10, i64 324, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !23, i64 392, !23, i64 504, !23, i64 616, !23, i64 728, !23, i64 840, !6, i64 952, !6, i64 960, !6, i64 968, !6, i64 976, !6, i64 984, !6, i64 992, !6, i64 1000, !6, i64 1008, !6, i64 1016, !6, i64 1024, !6, i64 1032, !6, i64 1040, !6, i64 1048, !6, i64 1056, !6, i64 1064, !6, i64 1072, !6, i64 1080, !6, i64 1088, !6, i64 1096, !6, i64 1104, !6, i64 1112, !6, i64 1120, !6, i64 1128, !6, i64 1136, !6, i64 1144, !6, i64 1152, !6, i64 1160, !6, i64 1168, !6, i64 1176, !6, i64 1184, !6, i64 1192, !6, i64 1200, !6, i64 1208, !6, i64 1216, !10, i64 1224, !10, i64 1228, !10, i64 1232, !10, i64 1236, !10, i64 1240, !10, i64 1244, !10, i64 1248, !10, i64 1252, !10, i64 1256, !10, i64 1260, !6, i64 1264, !6, i64 1272, !6, i64 1280, !6, i64 1288, !6, i64 1296, !6, i64 1304, !6, i64 1312, !10, i64 1320, !10, i64 1324, !6, i64 1328, !6, i64 1336, !10, i64 1344, !6, i64 1352, !6, i64 1360, !6, i64 1368, !6, i64 1376, !6, i64 1384, !6, i64 1392, !6, i64 1400, !6, i64 1408, !29, i64 1416, !29, i64 1418, !29, i64 1420, !29, i64 1422, !10, i64 1424, !10, i64 1428, !10, i64 1432, !15, i64 1440, !18, i64 1472, !18, i64 1473, !18, i64 1474, !18, i64 1475, !10, i64 1476, !10, i64 1480, !18, i64 1484, !18, i64 1485, !18, i64 1486, !18, i64 1487, !10, i64 1488, !10, i64 1492, !10, i64 1496, !10, i64 1500, !30, i64 1504, !34, i64 1528, !6, i64 1552, !6, i64 1560, !6, i64 1568, !6, i64 1576, !6, i64 1584, !6, i64 1592, !7, i64 1600, !6, i64 1624, !7, i64 1632, !7, i64 1656, !7, i64 1680, !7, i64 1704, !6, i64 1728, !7, i64 1736, !7, i64 1760, !6, i64 1784, !7, i64 1792, !38, i64 1864, !18, i64 1912, !18, i64 1913, !18, i64 1914, !18, i64 1915, !18, i64 1916, !18, i64 1917, !18, i64 1918, !18, i64 1919, !6, i64 1920, !6, i64 1928, !6, i64 1936, !6, i64 1944, !10, i64 1952, !10, i64 1956, !10, i64 1960, !10, i64 1964, !10, i64 1968, !10, i64 1972, !10, i64 1976, !10, i64 1980, !10, i64 1984, !18, i64 1988, !6, i64 1992, !6, i64 2000, !46, i64 2008}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !17, i64 8, !7, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSSt6vectorIjSaIjEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!23 = !{!"_ZTS8mdvectorIdE", !10, i64 0, !17, i64 8, !17, i64 16, !24, i64 24, !24, i64 48, !25, i64 72, !12, i64 96, !18, i64 104}
!24 = !{!"_ZTSSt5arrayIjLm6EE", !7, i64 0}
!25 = !{!"_ZTSSt6vectorIdSaIdEE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!29 = !{!"short", !7, i64 0}
!30 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!34 = !{!"_ZTSSt6vectorIiSaIiEE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!38 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEE", !39, i64 0}
!39 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE", !40, i64 0}
!40 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !41, i64 0, !43, i64 8}
!41 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !42, i64 0}
!42 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!43 = !{!"_ZTSSt15_Rb_tree_header", !44, i64 0, !17, i64 32}
!44 = !{!"_ZTSSt18_Rb_tree_node_base", !45, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!45 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!46 = !{!"_ZTS5Timer", !47, i64 0, !47, i64 8, !6, i64 16, !15, i64 24}
!47 = !{!"_ZTSNSt6chrono10time_pointINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEEEE", !48, i64 0}
!48 = !{!"_ZTSNSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEE", !17, i64 0}
!49 = !{!14, !10, i64 16}
!50 = !{!14, !6, i64 352}


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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sin(double 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: mustprogress nofree nounwind willreturn memory(write)
declare double @exp(double noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @cos(double noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef double @_Z15compute_dU_trueddddjjPK11InputStruct(double noundef %0, double noundef %1, double noundef %2, double noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6) local_unnamed_addr #2 {
  %8 = load i32, ptr %6, align 8, !tbaa !5
  %9 = icmp eq i32 %8, 0
  br i1 %9, label %10, label %35

10:                                               ; preds = %7
  %11 = getelementptr inbounds i8, ptr %6, i64 16
  %12 = load i32, ptr %11, align 8, !tbaa !46
  %cond = icmp eq i32 %12, 2
  br i1 %cond, label %.sink.split, label %35

.sink.split:                                      ; preds = %10
  %13 = icmp eq i32 %5, 0
  %14 = getelementptr inbounds i8, ptr %6, i64 352
  %15 = load double, ptr %14, align 8, !tbaa !47
  %16 = fmul double %15, -2.000000e+00
  %17 = fmul double %16, 0x400921FB54442D18
  %18 = fmul double %17, 0x400921FB54442D18
  %19 = fmul double %18, %3
  %20 = tail call double @exp(double noundef %19) #3
  %21 = getelementptr inbounds i8, ptr %6, i64 392
  %. = zext i1 %13 to i32
  %.33 = select i1 %13, double %1, double %0
  %not. = xor i1 %13, true
  %.34 = zext i1 %not. to i32
  %.35 = select i1 %13, double %0, double %1
  %22 = tail call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %21, i32 noundef %.)
  %23 = fneg double %22
  %24 = tail call double @llvm.fmuladd.f64(double %23, double %3, double %.33)
  %25 = fmul double %24, 0x400921FB54442D18
  %26 = tail call double @sin(double noundef %25) #3
  %27 = fmul double %20, %26
  %28 = fmul double %27, 0x400921FB54442D18
  %29 = tail call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %21, i32 noundef %.34)
  %30 = fneg double %29
  %31 = tail call double @llvm.fmuladd.f64(double %30, double %3, double %.35)
  %32 = fmul double %31, 0x400921FB54442D18
  %33 = tail call double @cos(double noundef %32) #3
  %34 = fmul double %28, %33
  br label %35

35:                                               ; preds = %.sink.split, %10, %7
  %.0 = phi double [ 0.000000e+00, %10 ], [ 0.000000e+00, %7 ], [ %34, %.sink.split ]
  ret double %.0
}

attributes #0 = { mustprogress nofree nounwind willreturn memory(write) "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 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, !7, i64 0}
!6 = !{!"_ZTS11InputStruct", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !10, i64 72, !10, i64 104, !10, i64 136, !10, i64 168, !10, i64 200, !10, i64 232, !14, i64 264, !14, i64 265, !14, i64 266, !14, i64 267, !14, i64 268, !14, i64 269, !14, i64 270, !14, i64 271, !15, i64 272, !15, i64 296, !7, i64 320, !7, i64 324, !19, i64 328, !19, i64 336, !19, i64 344, !19, i64 352, !19, i64 360, !19, i64 368, !19, i64 376, !19, i64 384, !20, i64 392, !20, i64 504, !20, i64 616, !20, i64 728, !20, i64 840, !19, i64 952, !19, i64 960, !19, i64 968, !19, i64 976, !19, i64 984, !19, i64 992, !19, i64 1000, !19, i64 1008, !19, i64 1016, !19, i64 1024, !19, i64 1032, !19, i64 1040, !19, i64 1048, !19, i64 1056, !19, i64 1064, !19, i64 1072, !19, i64 1080, !19, i64 1088, !19, i64 1096, !19, i64 1104, !19, i64 1112, !19, i64 1120, !19, i64 1128, !19, i64 1136, !19, i64 1144, !19, i64 1152, !19, i64 1160, !19, i64 1168, !19, i64 1176, !19, i64 1184, !19, i64 1192, !19, i64 1200, !19, i64 1208, !19, i64 1216, !7, i64 1224, !7, i64 1228, !7, i64 1232, !7, i64 1236, !7, i64 1240, !7, i64 1244, !7, i64 1248, !7, i64 1252, !7, i64 1256, !7, i64 1260, !19, i64 1264, !19, i64 1272, !19, i64 1280, !19, i64 1288, !19, i64 1296, !19, i64 1304, !19, i64 1312, !7, i64 1320, !7, i64 1324, !19, i64 1328, !19, i64 1336, !7, i64 1344, !19, i64 1352, !19, i64 1360, !19, i64 1368, !19, i64 1376, !19, i64 1384, !19, i64 1392, !19, i64 1400, !19, i64 1408, !26, i64 1416, !26, i64 1418, !26, i64 1420, !26, i64 1422, !7, i64 1424, !7, i64 1428, !7, i64 1432, !10, i64 1440, !14, i64 1472, !14, i64 1473, !14, i64 1474, !14, i64 1475, !7, i64 1476, !7, i64 1480, !14, i64 1484, !14, i64 1485, !14, i64 1486, !14, i64 1487, !7, i64 1488, !7, i64 1492, !7, i64 1496, !7, i64 1500, !27, i64 1504, !31, i64 1528, !19, i64 1552, !19, i64 1560, !19, i64 1568, !19, i64 1576, !19, i64 1584, !19, i64 1592, !8, i64 1600, !19, i64 1624, !8, i64 1632, !8, i64 1656, !8, i64 1680, !8, i64 1704, !19, i64 1728, !8, i64 1736, !8, i64 1760, !19, i64 1784, !8, i64 1792, !35, i64 1864, !14, i64 1912, !14, i64 1913, !14, i64 1914, !14, i64 1915, !14, i64 1916, !14, i64 1917, !14, i64 1918, !14, i64 1919, !19, i64 1920, !19, i64 1928, !19, i64 1936, !19, i64 1944, !7, i64 1952, !7, i64 1956, !7, i64 1960, !7, i64 1964, !7, i64 1968, !7, i64 1972, !7, i64 1976, !7, i64 1980, !7, i64 1984, !14, i64 1988, !19, i64 1992, !19, i64 2000, !43, i64 2008}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !11, i64 0, !13, i64 8, !8, i64 16}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!"bool", !8, i64 0}
!15 = !{!"_ZTSSt6vectorIjSaIjEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!19 = !{!"double", !8, i64 0}
!20 = !{!"_ZTS8mdvectorIdE", !7, i64 0, !13, i64 8, !13, i64 16, !21, i64 24, !21, i64 48, !22, i64 72, !12, i64 96, !14, i64 104}
!21 = !{!"_ZTSSt5arrayIjLm6EE", !8, i64 0}
!22 = !{!"_ZTSSt6vectorIdSaIdEE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!26 = !{!"short", !8, i64 0}
!27 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!31 = !{!"_ZTSSt6vectorIiSaIiEE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!35 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEE", !36, i64 0}
!36 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE", !37, i64 0}
!37 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !38, i64 0, !40, i64 8}
!38 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !39, i64 0}
!39 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!40 = !{!"_ZTSSt15_Rb_tree_header", !41, i64 0, !13, i64 32}
!41 = !{!"_ZTSSt18_Rb_tree_node_base", !42, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!42 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!43 = !{!"_ZTS5Timer", !44, i64 0, !44, i64 8, !19, i64 16, !10, i64 24}
!44 = !{!"_ZTSNSt6chrono10time_pointINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEEEE", !45, i64 0}
!45 = !{!"_ZTSNSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEE", !13, i64 0}
!46 = !{!6, !7, i64 16}
!47 = !{!6, !19, i64 352}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass