; LLVM IR from maliput/maliput :: src/maliput/api/regions.ll (ZNK7maliput3api6SRange8ContainsERKS1_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"

@.str.1 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [73 x i8], align 1
@__func__._ZNK7maliput3api6SRange8ContainsERKS1_d = external hidden unnamed_addr constant [9 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: 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)) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7maliput3api6SRange8ContainsERKS1_d(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, double noundef %2) #5 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 double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca i8, align 1
  %18 = alloca i8, align 1
  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
  %19 = load ptr, ptr %4, align 8
  br label %20

20:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %21 = call noundef double @_ZNK7maliput3api6SRange2s0Ev(ptr noundef nonnull align 8 dereferenceable(16) %19)
  store double %21, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %22 = call noundef double @_ZNK7maliput3api6SRange2s1Ev(ptr noundef nonnull align 8 dereferenceable(16) %19)
  store double %22, ptr %8, align 8, !tbaa !9
  %23 = 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)
  %24 = load double, ptr %23, align 8, !tbaa !9
  %25 = fcmp oge double %24, 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 %25, label %26, label %34

26:                                               ; preds = %20
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = call noundef double @_ZNK7maliput3api6SRange2s0Ev(ptr noundef nonnull align 8 dereferenceable(16) %27)
  store double %28, ptr %9, align 8, !tbaa !9
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = call noundef double @_ZNK7maliput3api6SRange2s1Ev(ptr noundef nonnull align 8 dereferenceable(16) %29)
  store double %30, ptr %10, align 8, !tbaa !9
  %31 = 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)
  %32 = load double, ptr %31, align 8, !tbaa !9
  %33 = fcmp oge double %32, 0.000000e+00
  br label %34

34:                                               ; preds = %26, %20
  %35 = phi i1 [ false, %20 ], [ %33, %26 ]
  %36 = xor i1 %35, 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 %36, label %37, label %38

37:                                               ; preds = %34
  call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.10, ptr noundef @__func__._ZNK7maliput3api6SRange8ContainsERKS1_d, ptr noundef @.str.1, i32 noundef 93) #7
  unreachable

38:                                               ; preds = %34
  br label %39

39:                                               ; preds = %38
  %40 = load double, ptr %6, align 8, !tbaa !9
  %41 = fcmp olt double %40, 0.000000e+00
  br i1 %41, label %42, label %57

42:                                               ; preds = %39
  br label %43

43:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %44 = call noundef double @_ZNK7maliput3api6SRange4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
  store double %44, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = call noundef double @_ZNK7maliput3api6SRange4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %45)
  store double %46, ptr %12, align 8, !tbaa !9
  %47 = 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)
  %48 = load double, ptr %47, align 8, !tbaa !9
  %49 = fdiv double %48, 2.000000e+00
  %50 = load double, ptr %6, align 8, !tbaa !9
  %51 = call double @llvm.fabs.f64(double %50)
  %52 = fcmp oge double %49, %51
  %53 = xor i1 %52, 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 %53, label %54, label %55

54:                                               ; preds = %43
  call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.9, ptr noundef @__func__._ZNK7maliput3api6SRange8ContainsERKS1_d, ptr noundef @.str.1, i32 noundef 96) #7
  unreachable

55:                                               ; preds = %43
  br label %56

56:                                               ; preds = %55
  br label %57

57:                                               ; preds = %56, %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %58 = call noundef zeroext i1 @_ZNK7maliput3api6SRange5WithSEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
  br i1 %58, label %59, label %63

59:                                               ; preds = %57
  %60 = call noundef double @_ZNK7maliput3api6SRange2s0Ev(ptr noundef nonnull align 8 dereferenceable(16) %19)
  %61 = load double, ptr %6, align 8, !tbaa !9
  %62 = fsub double %60, %61
  br label %67

63:                                               ; preds = %57
  %64 = call noundef double @_ZNK7maliput3api6SRange2s1Ev(ptr noundef nonnull align 8 dereferenceable(16) %19)
  %65 = load double, ptr %6, align 8, !tbaa !9
  %66 = fsub double %64, %65
  br label %67

67:                                               ; preds = %63, %59
  %68 = phi double [ %62, %59 ], [ %66, %63 ]
  store double %68, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store double 0.000000e+00, ptr %15, 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) %15)
  %70 = load double, ptr %69, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  store double %70, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %71 = call noundef zeroext i1 @_ZNK7maliput3api6SRange5WithSEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
  br i1 %71, label %72, label %76

72:                                               ; preds = %67
  %73 = call noundef double @_ZNK7maliput3api6SRange2s1Ev(ptr noundef nonnull align 8 dereferenceable(16) %19)
  %74 = load double, ptr %6, align 8, !tbaa !9
  %75 = fadd double %73, %74
  br label %80

76:                                               ; preds = %67
  %77 = call noundef double @_ZNK7maliput3api6SRange2s0Ev(ptr noundef nonnull align 8 dereferenceable(16) %19)
  %78 = load double, ptr %6, align 8, !tbaa !9
  %79 = fadd double %77, %78
  br label %80

80:                                               ; preds = %76, %72
  %81 = phi double [ %75, %72 ], [ %79, %76 ]
  store double %81, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #6
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = call noundef double @_ZNK7maliput3api6SRange2s1Ev(ptr noundef nonnull align 8 dereferenceable(16) %82)
  %84 = load double, ptr %16, align 8, !tbaa !9
  %85 = fcmp ole double %83, %84
  br i1 %85, label %86, label %91

86:                                               ; preds = %80
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = call noundef double @_ZNK7maliput3api6SRange2s1Ev(ptr noundef nonnull align 8 dereferenceable(16) %87)
  %89 = load double, ptr %13, align 8, !tbaa !9
  %90 = fcmp oge double %88, %89
  br label %91

91:                                               ; preds = %86, %80
  %92 = phi i1 [ false, %80 ], [ %90, %86 ]
  %93 = zext i1 %92 to i8
  store i8 %93, ptr %17, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #6
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = call noundef double @_ZNK7maliput3api6SRange2s0Ev(ptr noundef nonnull align 8 dereferenceable(16) %94)
  %96 = load double, ptr %16, align 8, !tbaa !9
  %97 = fcmp ole double %95, %96
  br i1 %97, label %98, label %103

98:                                               ; preds = %91
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = call noundef double @_ZNK7maliput3api6SRange2s0Ev(ptr noundef nonnull align 8 dereferenceable(16) %99)
  %101 = load double, ptr %13, align 8, !tbaa !9
  %102 = fcmp oge double %100, %101
  br label %103

103:                                              ; preds = %98, %91
  %104 = phi i1 [ false, %91 ], [ %102, %98 ]
  %105 = zext i1 %104 to i8
  store i8 %105, ptr %18, align 1, !tbaa !11
  %106 = load i8, ptr %17, align 1, !tbaa !11, !range !13, !noundef !14
  %107 = trunc i8 %106 to i1
  br i1 %107, label %108, label %111

108:                                              ; preds = %103
  %109 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %110 = trunc i8 %109 to i1
  br label %111

111:                                              ; preds = %108, %103
  %112 = phi i1 [ false, %103 ], [ %110, %108 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  ret i1 %112
}

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

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 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #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}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.1 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [73 x i8], align 1
@__func__._ZNK7maliput3api6SRange8ContainsERKS1_d = external hidden unnamed_addr constant [9 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: 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 #3

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

; 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 #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7maliput3api6SRange8ContainsERKS1_d(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, double noundef %2) local_unnamed_addr #5 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 double, align 8
  %11 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %12 = tail call noundef double @_ZNK7maliput3api6SRange2s0Ev(ptr noundef nonnull align 8 dereferenceable(16) %0)
  store double %12, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %13 = tail call noundef double @_ZNK7maliput3api6SRange2s1Ev(ptr noundef nonnull align 8 dereferenceable(16) %0)
  store double %13, ptr %5, align 8, !tbaa !5
  %14 = 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)
  %15 = load double, ptr %14, align 8, !tbaa !5
  %16 = fcmp ult double %15, 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 %16, label %.critedge, label %17

17:                                               ; preds = %3
  %18 = call noundef double @_ZNK7maliput3api6SRange2s0Ev(ptr noundef nonnull align 8 dereferenceable(16) %1)
  store double %18, ptr %6, align 8, !tbaa !5
  %19 = call noundef double @_ZNK7maliput3api6SRange2s1Ev(ptr noundef nonnull align 8 dereferenceable(16) %1)
  store double %19, ptr %7, align 8, !tbaa !5
  %20 = 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)
  %21 = load double, ptr %20, align 8, !tbaa !5
  %22 = fcmp ult double %21, 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 %22, label %23, label %24

.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 %23

23:                                               ; preds = %.critedge, %17
  call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef nonnull @.str.10, ptr noundef nonnull @__func__._ZNK7maliput3api6SRange8ContainsERKS1_d, ptr noundef nonnull @.str.1, i32 noundef 93) #7
  unreachable

24:                                               ; preds = %17
  %25 = fcmp olt double %2, 0.000000e+00
  br i1 %25, label %26, label %35

26:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %27 = call noundef double @_ZNK7maliput3api6SRange4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  store double %27, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %28 = call noundef double @_ZNK7maliput3api6SRange4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  store double %28, ptr %9, align 8, !tbaa !5
  %29 = 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)
  %30 = load double, ptr %29, align 8, !tbaa !5
  %31 = fmul double %30, 5.000000e-01
  %32 = call double @llvm.fabs.f64(double %2)
  %33 = fcmp ult double %31, %32
  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 %33, label %34, label %35

34:                                               ; preds = %26
  call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef nonnull @.str.9, ptr noundef nonnull @__func__._ZNK7maliput3api6SRange8ContainsERKS1_d, ptr noundef nonnull @.str.1, i32 noundef 96) #7
  unreachable

35:                                               ; preds = %26, %24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %36 = call noundef zeroext i1 @_ZNK7maliput3api6SRange5WithSEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  br i1 %36, label %37, label %39

37:                                               ; preds = %35
  %38 = call noundef double @_ZNK7maliput3api6SRange2s0Ev(ptr noundef nonnull align 8 dereferenceable(16) %0)
  br label %41

39:                                               ; preds = %35
  %40 = call noundef double @_ZNK7maliput3api6SRange2s1Ev(ptr noundef nonnull align 8 dereferenceable(16) %0)
  br label %41

41:                                               ; preds = %39, %37
  %.pn = phi double [ %38, %37 ], [ %40, %39 ]
  %42 = fsub double %.pn, %2
  store double %42, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  store double 0.000000e+00, ptr %11, align 8, !tbaa !5
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %44 = load double, ptr %43, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  %45 = call noundef zeroext i1 @_ZNK7maliput3api6SRange5WithSEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  br i1 %45, label %46, label %48

46:                                               ; preds = %41
  %47 = call noundef double @_ZNK7maliput3api6SRange2s1Ev(ptr noundef nonnull align 8 dereferenceable(16) %0)
  br label %50

48:                                               ; preds = %41
  %49 = call noundef double @_ZNK7maliput3api6SRange2s0Ev(ptr noundef nonnull align 8 dereferenceable(16) %0)
  br label %50

50:                                               ; preds = %48, %46
  %.pn19 = phi double [ %47, %46 ], [ %49, %48 ]
  %51 = fadd double %.pn19, %2
  %52 = call noundef double @_ZNK7maliput3api6SRange2s1Ev(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %53 = fcmp ugt double %52, %51
  br i1 %53, label %57, label %54

54:                                               ; preds = %50
  %55 = call noundef double @_ZNK7maliput3api6SRange2s1Ev(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %56 = fcmp oge double %55, %44
  br label %57

57:                                               ; preds = %54, %50
  %58 = phi i1 [ false, %50 ], [ %56, %54 ]
  %59 = call noundef double @_ZNK7maliput3api6SRange2s0Ev(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %60 = fcmp ugt double %59, %51
  br i1 %60, label %64, label %61

61:                                               ; preds = %57
  %62 = call noundef double @_ZNK7maliput3api6SRange2s0Ev(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %63 = fcmp oge double %62, %44
  br label %64

64:                                               ; preds = %61, %57
  %65 = phi i1 [ false, %57 ], [ %63, %61 ]
  %66 = select i1 %58, i1 %65, i1 false
  ret i1 %66
}

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

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 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #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: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass