; LLVM IR from maliput/maliput :: src/maliput/api/regions.ll (ZNK7maliput3api6SRange10IntersectsERKS1_d)

; 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.maliput::api::SRange" = type { double, double }

@.str.1 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [71 x i8], align 1
@__func__._ZNK7maliput3api6SRange10IntersectsERKS1_d = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [62 x i8], align 1

; Function Attrs: noreturn
declare void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #0

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7maliput3api6SRange10IntersectsERKS1_d(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, double noundef %2) #3 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca %"class.maliput::api::SRange", align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store double %2, ptr %6, align 8, !tbaa !9
  %24 = load ptr, ptr %4, align 8
  br label %25

25:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %26 = call noundef double @_ZNK7maliput3api6SRange2s0Ev(ptr noundef nonnull align 8 dereferenceable(16) %24)
  store double %26, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %27 = call noundef double @_ZNK7maliput3api6SRange2s1Ev(ptr noundef nonnull align 8 dereferenceable(16) %24)
  store double %27, ptr %8, align 8, !tbaa !9
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %29 = load double, ptr %28, align 8, !tbaa !9
  %30 = fcmp oge double %29, 0.000000e+00
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  br i1 %30, label %31, label %39

31:                                               ; preds = %25
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = call noundef double @_ZNK7maliput3api6SRange2s0Ev(ptr noundef nonnull align 8 dereferenceable(16) %32)
  store double %33, ptr %9, align 8, !tbaa !9
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = call noundef double @_ZNK7maliput3api6SRange2s1Ev(ptr noundef nonnull align 8 dereferenceable(16) %34)
  store double %35, ptr %10, align 8, !tbaa !9
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %37 = load double, ptr %36, align 8, !tbaa !9
  %38 = fcmp oge double %37, 0.000000e+00
  br label %39

39:                                               ; preds = %31, %25
  %40 = phi i1 [ false, %25 ], [ %38, %31 ]
  %41 = xor i1 %40, true
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br i1 %41, label %42, label %43

42:                                               ; preds = %39
  call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.8, ptr noundef @__func__._ZNK7maliput3api6SRange10IntersectsERKS1_d, ptr noundef @.str.1, i32 noundef 82) #7
  unreachable

43:                                               ; preds = %39
  br label %44

44:                                               ; preds = %43
  %45 = load double, ptr %6, align 8, !tbaa !9
  %46 = fcmp olt double %45, 0.000000e+00
  br i1 %46, label %47, label %62

47:                                               ; preds = %44
  br label %48

48:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %49 = call noundef double @_ZNK7maliput3api6SRange4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
  store double %49, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = call noundef double @_ZNK7maliput3api6SRange4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %50)
  store double %51, ptr %12, align 8, !tbaa !9
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %53 = load double, ptr %52, align 8, !tbaa !9
  %54 = fdiv double %53, 2.000000e+00
  %55 = load double, ptr %6, align 8, !tbaa !9
  %56 = call double @llvm.fabs.f64(double %55)
  %57 = fcmp oge double %54, %56
  %58 = xor i1 %57, true
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br i1 %58, label %59, label %60

59:                                               ; preds = %48
  call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.9, ptr noundef @__func__._ZNK7maliput3api6SRange10IntersectsERKS1_d, ptr noundef @.str.1, i32 noundef 85) #7
  unreachable

60:                                               ; preds = %48
  br label %61

61:                                               ; preds = %60
  br label %62

62:                                               ; preds = %61, %44
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %63 = call noundef double @_ZNK7maliput3api6SRange2s0Ev(ptr noundef nonnull align 8 dereferenceable(16) %24)
  store double %63, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %64 = call noundef double @_ZNK7maliput3api6SRange2s1Ev(ptr noundef nonnull align 8 dereferenceable(16) %24)
  store double %64, ptr %16, align 8, !tbaa !9
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16)
  %66 = load double, ptr %65, align 8, !tbaa !9
  %67 = load double, ptr %6, align 8, !tbaa !9
  %68 = fsub double %66, %67
  store double %68, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store double 0.000000e+00, ptr %17, align 8, !tbaa !9
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %17)
  %70 = load double, ptr %69, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %71 = call noundef double @_ZNK7maliput3api6SRange2s0Ev(ptr noundef nonnull align 8 dereferenceable(16) %24)
  store double %71, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %72 = call noundef double @_ZNK7maliput3api6SRange2s1Ev(ptr noundef nonnull align 8 dereferenceable(16) %24)
  store double %72, ptr %19, align 8, !tbaa !9
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19)
  %74 = load double, ptr %73, align 8, !tbaa !9
  %75 = load double, ptr %6, align 8, !tbaa !9
  %76 = fadd double %74, %75
  call void @_ZN7maliput3api6SRangeC1Edd(ptr noundef nonnull align 8 dereferenceable(16) %13, double noundef %70, double noundef %76)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = call noundef double @_ZNK7maliput3api6SRange2s0Ev(ptr noundef nonnull align 8 dereferenceable(16) %77)
  store double %78, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = call noundef double @_ZNK7maliput3api6SRange2s1Ev(ptr noundef nonnull align 8 dereferenceable(16) %79)
  store double %80, ptr %21, align 8, !tbaa !9
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21)
  %82 = load double, ptr %81, align 8, !tbaa !9
  %83 = call noundef double @_ZNK7maliput3api6SRange2s0Ev(ptr noundef nonnull align 8 dereferenceable(16) %13)
  %84 = fcmp olt double %82, %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  br i1 %84, label %94, label %85

85:                                               ; preds = %62
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = call noundef double @_ZNK7maliput3api6SRange2s0Ev(ptr noundef nonnull align 8 dereferenceable(16) %86)
  store double %87, ptr %22, align 8, !tbaa !9
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = call noundef double @_ZNK7maliput3api6SRange2s1Ev(ptr noundef nonnull align 8 dereferenceable(16) %88)
  store double %89, ptr %23, align 8, !tbaa !9
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23)
  %91 = load double, ptr %90, align 8, !tbaa !9
  %92 = call noundef double @_ZNK7maliput3api6SRange2s1Ev(ptr noundef nonnull align 8 dereferenceable(16) %13)
  %93 = fcmp ogt double %91, %92
  br label %94

94:                                               ; preds = %85, %62
  %95 = phi i1 [ true, %62 ], [ %93, %85 ]
  %96 = xor i1 %95, true
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  ret i1 %96
}

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

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

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

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

declare void @_ZN7maliput3api6SRangeC1Edd(ptr, double, double)

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

!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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}


; 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.maliput::api::SRange" = type { double, double }

@.str.1 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [71 x i8], align 1
@__func__._ZNK7maliput3api6SRange10IntersectsERKS1_d = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [62 x i8], align 1

; Function Attrs: noreturn
declare void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7maliput3api6SRange10IntersectsERKS1_d(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, double noundef %2) local_unnamed_addr #3 align 2 {
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca %"class.maliput::api::SRange", align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %21 = tail call noundef double @_ZNK7maliput3api6SRange2s0Ev(ptr noundef nonnull align 8 dereferenceable(16) %0)
  store double %21, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %22 = tail call noundef double @_ZNK7maliput3api6SRange2s1Ev(ptr noundef nonnull align 8 dereferenceable(16) %0)
  store double %22, ptr %5, align 8, !tbaa !5
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %24 = load double, ptr %23, align 8, !tbaa !5
  %25 = fcmp ult double %24, 0.000000e+00
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  br i1 %25, label %.critedge, label %26

26:                                               ; preds = %3
  %27 = call noundef double @_ZNK7maliput3api6SRange2s0Ev(ptr noundef nonnull align 8 dereferenceable(16) %1)
  store double %27, ptr %6, align 8, !tbaa !5
  %28 = call noundef double @_ZNK7maliput3api6SRange2s1Ev(ptr noundef nonnull align 8 dereferenceable(16) %1)
  store double %28, ptr %7, align 8, !tbaa !5
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %30 = load double, ptr %29, align 8, !tbaa !5
  %31 = fcmp ult double %30, 0.000000e+00
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br i1 %31, label %32, label %33

.critedge:                                        ; preds = %3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %32

32:                                               ; preds = %.critedge, %26
  call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef nonnull @.str.8, ptr noundef nonnull @__func__._ZNK7maliput3api6SRange10IntersectsERKS1_d, ptr noundef nonnull @.str.1, i32 noundef 82) #7
  unreachable

33:                                               ; preds = %26
  %34 = fcmp olt double %2, 0.000000e+00
  br i1 %34, label %35, label %44

35:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %36 = call noundef double @_ZNK7maliput3api6SRange4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  store double %36, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %37 = call noundef double @_ZNK7maliput3api6SRange4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  store double %37, ptr %9, align 8, !tbaa !5
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %39 = load double, ptr %38, align 8, !tbaa !5
  %40 = fmul double %39, 5.000000e-01
  %41 = call double @llvm.fabs.f64(double %2)
  %42 = fcmp ult double %40, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br i1 %42, label %43, label %44

43:                                               ; preds = %35
  call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef nonnull @.str.9, ptr noundef nonnull @__func__._ZNK7maliput3api6SRange10IntersectsERKS1_d, ptr noundef nonnull @.str.1, i32 noundef 85) #7
  unreachable

44:                                               ; preds = %35, %33
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %45 = call noundef double @_ZNK7maliput3api6SRange2s0Ev(ptr noundef nonnull align 8 dereferenceable(16) %0)
  store double %45, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  %46 = call noundef double @_ZNK7maliput3api6SRange2s1Ev(ptr noundef nonnull align 8 dereferenceable(16) %0)
  store double %46, ptr %13, align 8, !tbaa !5
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %48 = load double, ptr %47, align 8, !tbaa !5
  %49 = fsub double %48, %2
  store double %49, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  store double 0.000000e+00, ptr %14, align 8, !tbaa !5
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %51 = load double, ptr %50, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  %52 = call noundef double @_ZNK7maliput3api6SRange2s0Ev(ptr noundef nonnull align 8 dereferenceable(16) %0)
  store double %52, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  %53 = call noundef double @_ZNK7maliput3api6SRange2s1Ev(ptr noundef nonnull align 8 dereferenceable(16) %0)
  store double %53, ptr %16, align 8, !tbaa !5
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16)
  %55 = load double, ptr %54, align 8, !tbaa !5
  %56 = fadd double %55, %2
  call void @_ZN7maliput3api6SRangeC1Edd(ptr noundef nonnull align 8 dereferenceable(16) %10, double noundef %51, double noundef %56)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  %57 = call noundef double @_ZNK7maliput3api6SRange2s0Ev(ptr noundef nonnull align 8 dereferenceable(16) %1)
  store double %57, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  %58 = call noundef double @_ZNK7maliput3api6SRange2s1Ev(ptr noundef nonnull align 8 dereferenceable(16) %1)
  store double %58, ptr %18, align 8, !tbaa !5
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18)
  %60 = load double, ptr %59, align 8, !tbaa !5
  %61 = call noundef double @_ZNK7maliput3api6SRange2s0Ev(ptr noundef nonnull align 8 dereferenceable(16) %10)
  %62 = fcmp olt double %60, %61
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #6
  br i1 %62, label %70, label %63

63:                                               ; preds = %44
  %64 = call noundef double @_ZNK7maliput3api6SRange2s0Ev(ptr noundef nonnull align 8 dereferenceable(16) %1)
  store double %64, ptr %19, align 8, !tbaa !5
  %65 = call noundef double @_ZNK7maliput3api6SRange2s1Ev(ptr noundef nonnull align 8 dereferenceable(16) %1)
  store double %65, ptr %20, align 8, !tbaa !5
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20)
  %67 = load double, ptr %66, align 8, !tbaa !5
  %68 = call noundef double @_ZNK7maliput3api6SRange2s1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10)
  %69 = fcmp ule double %67, %68
  br label %70

70:                                               ; preds = %63, %44
  %71 = phi i1 [ false, %44 ], [ %69, %63 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  ret i1 %71
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

declare void @_ZN7maliput3api6SRangeC1Edd(ptr, double, double) local_unnamed_addr

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

!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: GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass