; LLVM IR from thekyria/elabtsaot2 :: emulator_hw/hardware_model/sliceanalog.ll (ZN9elabtsaot11SliceAnalog11embrConnectEmmmdd)

; 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.std::_Bit_reference" = type { ptr, i64 }
%"class.elabtsaot::SliceAnalog" = type { double, double, %"class.elabtsaot::DAC", %"class.elabtsaot::DAC", %"class.std::vector" }
%"class.elabtsaot::DAC" = type <{ double, double, i32, i32, i32, [4 x i8], double, double, double, double, i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<elabtsaot::Atom>, std::allocator<std::vector<elabtsaot::Atom>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<elabtsaot::Atom>, std::allocator<std::vector<elabtsaot::Atom>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<elabtsaot::Atom>, std::allocator<std::vector<elabtsaot::Atom>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<elabtsaot::Atom>, std::allocator<std::vector<elabtsaot::Atom>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.elabtsaot::Atom" = type { %"class.elabtsaot::Node", %"class.std::vector.5", %"class.std::vector.5", %"class.std::vector.10" }
%"class.elabtsaot::Node" = type { double, double, double, double, i8, i8, i8, i8, double, double, double, double, i8, i8, i8, i8, [4 x i8], %"class.elabtsaot::Potentiometer", %"class.elabtsaot::Potentiometer", %"class.elabtsaot::Potentiometer", %"class.elabtsaot::Potentiometer" }
%"class.elabtsaot::Potentiometer" = type <{ ptr, double, double, i32, [4 x i8], double, i32, i32, i8, i8, [6 x i8] }>
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<elabtsaot::EmulatorBranch, std::allocator<elabtsaot::EmulatorBranch>>::_Vector_impl" }
%"struct.std::_Vector_base<elabtsaot::EmulatorBranch, std::allocator<elabtsaot::EmulatorBranch>>::_Vector_impl" = type { %"struct.std::_Vector_base<elabtsaot::EmulatorBranch, std::allocator<elabtsaot::EmulatorBranch>>::_Vector_impl_data" }
%"struct.std::_Vector_base<elabtsaot::EmulatorBranch, std::allocator<elabtsaot::EmulatorBranch>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN9elabtsaot4AtomESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN9elabtsaot11SliceAnalog11embrConnectEmmmdd(ptr noundef nonnull align 8 dereferenceable(184) %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, double noundef %4, double noundef %5) #2 align 2 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca %"struct.std::_Bit_reference", align 8
  %15 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i64 %1, ptr %9, align 8, !tbaa !9
  store i64 %2, ptr %10, align 8, !tbaa !9
  store i64 %3, ptr %11, align 8, !tbaa !9
  store double %4, ptr %12, align 8, !tbaa !11
  store double %5, ptr %13, align 8, !tbaa !11
  %16 = load ptr, ptr %8, align 8
  %17 = load i64, ptr %9, align 8, !tbaa !9
  %18 = getelementptr inbounds %"class.elabtsaot::SliceAnalog", ptr %16, i32 0, i32 4
  %19 = call noundef i64 @_ZNKSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #4
  %20 = icmp uge i64 %17, %19
  br i1 %20, label %21, label %22

21:                                               ; preds = %6
  store i32 20, ptr %7, align 4
  br label %195

22:                                               ; preds = %6
  %23 = load i64, ptr %10, align 8, !tbaa !9
  %24 = getelementptr inbounds %"class.elabtsaot::SliceAnalog", ptr %16, i32 0, i32 4
  %25 = load i64, ptr %9, align 8, !tbaa !9
  %26 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %25) #4
  %27 = call noundef i64 @_ZNKSt6vectorIN9elabtsaot4AtomESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #4
  %28 = icmp uge i64 %23, %27
  br i1 %28, label %29, label %30

29:                                               ; preds = %22
  store i32 21, ptr %7, align 4
  br label %195

30:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #4
  %31 = getelementptr inbounds %"class.elabtsaot::SliceAnalog", ptr %16, i32 0, i32 4
  %32 = load i64, ptr %9, align 8, !tbaa !9
  %33 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %32) #4
  %34 = load i64, ptr %10, align 8, !tbaa !9
  %35 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %34) #4
  %36 = getelementptr inbounds %"class.elabtsaot::Atom", ptr %35, i32 0, i32 3
  %37 = load i64, ptr %11, align 8, !tbaa !9
  %38 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %36, i64 noundef %37)
  %39 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 0
  %40 = extractvalue { ptr, i64 } %38, 0
  store ptr %40, ptr %39, align 8
  %41 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 1
  %42 = extractvalue { ptr, i64 } %38, 1
  store i64 %42, ptr %41, align 8
  %43 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %14) #4
  %44 = xor i1 %43, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #4
  br i1 %44, label %45, label %46

45:                                               ; preds = %30
  store i32 22, ptr %7, align 4
  br label %195

46:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !13
  %47 = getelementptr inbounds %"class.elabtsaot::SliceAnalog", ptr %16, i32 0, i32 4
  %48 = load i64, ptr %9, align 8, !tbaa !9
  %49 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %48) #4
  %50 = load i64, ptr %10, align 8, !tbaa !9
  %51 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %50) #4
  %52 = getelementptr inbounds %"class.elabtsaot::Atom", ptr %51, i32 0, i32 1
  %53 = load i64, ptr %11, align 8, !tbaa !9
  %54 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %53) #4
  call void @_ZN9elabtsaot14EmulatorBranch10set_sw_midEb(ptr noundef nonnull align 8 dereferenceable(120) %54, i1 noundef zeroext false)
  %55 = getelementptr inbounds %"class.elabtsaot::SliceAnalog", ptr %16, i32 0, i32 4
  %56 = load i64, ptr %9, align 8, !tbaa !9
  %57 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %55, i64 noundef %56) #4
  %58 = load i64, ptr %10, align 8, !tbaa !9
  %59 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %57, i64 noundef %58) #4
  %60 = getelementptr inbounds %"class.elabtsaot::Atom", ptr %59, i32 0, i32 2
  %61 = load i64, ptr %11, align 8, !tbaa !9
  %62 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %61) #4
  call void @_ZN9elabtsaot14EmulatorBranch10set_sw_midEb(ptr noundef nonnull align 8 dereferenceable(120) %62, i1 noundef zeroext false)
  %63 = getelementptr inbounds %"class.elabtsaot::SliceAnalog", ptr %16, i32 0, i32 4
  %64 = load i64, ptr %9, align 8, !tbaa !9
  %65 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef %64) #4
  %66 = load i64, ptr %10, align 8, !tbaa !9
  %67 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %66) #4
  %68 = getelementptr inbounds %"class.elabtsaot::Atom", ptr %67, i32 0, i32 1
  %69 = load i64, ptr %11, align 8, !tbaa !9
  %70 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %69) #4
  call void @_ZN9elabtsaot14EmulatorBranch15set_pot_near_swEb(ptr noundef nonnull align 8 dereferenceable(120) %70, i1 noundef zeroext true)
  %71 = getelementptr inbounds %"class.elabtsaot::SliceAnalog", ptr %16, i32 0, i32 4
  %72 = load i64, ptr %9, align 8, !tbaa !9
  %73 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %72) #4
  %74 = load i64, ptr %10, align 8, !tbaa !9
  %75 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef %74) #4
  %76 = getelementptr inbounds %"class.elabtsaot::Atom", ptr %75, i32 0, i32 2
  %77 = load i64, ptr %11, align 8, !tbaa !9
  %78 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %77) #4
  call void @_ZN9elabtsaot14EmulatorBranch15set_pot_near_swEb(ptr noundef nonnull align 8 dereferenceable(120) %78, i1 noundef zeroext true)
  %79 = getelementptr inbounds %"class.elabtsaot::SliceAnalog", ptr %16, i32 0, i32 4
  %80 = load i64, ptr %9, align 8, !tbaa !9
  %81 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %80) #4
  %82 = load i64, ptr %10, align 8, !tbaa !9
  %83 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef %82) #4
  %84 = getelementptr inbounds %"class.elabtsaot::Atom", ptr %83, i32 0, i32 1
  %85 = load i64, ptr %11, align 8, !tbaa !9
  %86 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef %85) #4
  %87 = load double, ptr %12, align 8, !tbaa !11
  %88 = call noundef i32 @_ZN9elabtsaot14EmulatorBranch14set_pot_near_rEdPd(ptr noundef nonnull align 8 dereferenceable(120) %86, double noundef %87, ptr noundef null)
  %89 = icmp ne i32 %88, 0
  %90 = zext i1 %89 to i64
  %91 = select i1 %89, i32 16, i32 0
  %92 = load i32, ptr %15, align 4, !tbaa !13
  %93 = or i32 %92, %91
  store i32 %93, ptr %15, align 4, !tbaa !13
  %94 = getelementptr inbounds %"class.elabtsaot::SliceAnalog", ptr %16, i32 0, i32 4
  %95 = load i64, ptr %9, align 8, !tbaa !9
  %96 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef %95) #4
  %97 = load i64, ptr %10, align 8, !tbaa !9
  %98 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %96, i64 noundef %97) #4
  %99 = getelementptr inbounds %"class.elabtsaot::Atom", ptr %98, i32 0, i32 2
  %100 = load i64, ptr %11, align 8, !tbaa !9
  %101 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %99, i64 noundef %100) #4
  %102 = load double, ptr %12, align 8, !tbaa !11
  %103 = call noundef i32 @_ZN9elabtsaot14EmulatorBranch14set_pot_near_rEdPd(ptr noundef nonnull align 8 dereferenceable(120) %101, double noundef %102, ptr noundef null)
  %104 = icmp ne i32 %103, 0
  %105 = zext i1 %104 to i64
  %106 = select i1 %104, i32 32, i32 0
  %107 = load i32, ptr %15, align 4, !tbaa !13
  %108 = or i32 %107, %106
  store i32 %108, ptr %15, align 4, !tbaa !13
  %109 = getelementptr inbounds %"class.elabtsaot::SliceAnalog", ptr %16, i32 0, i32 4
  %110 = load i64, ptr %9, align 8, !tbaa !9
  %111 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %109, i64 noundef %110) #4
  %112 = load i64, ptr %10, align 8, !tbaa !9
  %113 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %112) #4
  %114 = getelementptr inbounds %"class.elabtsaot::Atom", ptr %113, i32 0, i32 1
  %115 = load i64, ptr %11, align 8, !tbaa !9
  %116 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %114, i64 noundef %115) #4
  call void @_ZN9elabtsaot14EmulatorBranch14set_pot_far_swEb(ptr noundef nonnull align 8 dereferenceable(120) %116, i1 noundef zeroext true)
  %117 = getelementptr inbounds %"class.elabtsaot::SliceAnalog", ptr %16, i32 0, i32 4
  %118 = load i64, ptr %9, align 8, !tbaa !9
  %119 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %117, i64 noundef %118) #4
  %120 = load i64, ptr %10, align 8, !tbaa !9
  %121 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %119, i64 noundef %120) #4
  %122 = getelementptr inbounds %"class.elabtsaot::Atom", ptr %121, i32 0, i32 2
  %123 = load i64, ptr %11, align 8, !tbaa !9
  %124 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %123) #4
  call void @_ZN9elabtsaot14EmulatorBranch14set_pot_far_swEb(ptr noundef nonnull align 8 dereferenceable(120) %124, i1 noundef zeroext true)
  %125 = getelementptr inbounds %"class.elabtsaot::SliceAnalog", ptr %16, i32 0, i32 4
  %126 = load i64, ptr %9, align 8, !tbaa !9
  %127 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %125, i64 noundef %126) #4
  %128 = load i64, ptr %10, align 8, !tbaa !9
  %129 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %127, i64 noundef %128) #4
  %130 = getelementptr inbounds %"class.elabtsaot::Atom", ptr %129, i32 0, i32 1
  %131 = load i64, ptr %11, align 8, !tbaa !9
  %132 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %130, i64 noundef %131) #4
  %133 = load double, ptr %13, align 8, !tbaa !11
  %134 = call noundef i32 @_ZN9elabtsaot14EmulatorBranch13set_pot_far_rEdPd(ptr noundef nonnull align 8 dereferenceable(120) %132, double noundef %133, ptr noundef null)
  %135 = icmp ne i32 %134, 0
  %136 = zext i1 %135 to i64
  %137 = select i1 %135, i32 64, i32 0
  %138 = load i32, ptr %15, align 4, !tbaa !13
  %139 = or i32 %138, %137
  store i32 %139, ptr %15, align 4, !tbaa !13
  %140 = getelementptr inbounds %"class.elabtsaot::SliceAnalog", ptr %16, i32 0, i32 4
  %141 = load i64, ptr %9, align 8, !tbaa !9
  %142 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %140, i64 noundef %141) #4
  %143 = load i64, ptr %10, align 8, !tbaa !9
  %144 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %142, i64 noundef %143) #4
  %145 = getelementptr inbounds %"class.elabtsaot::Atom", ptr %144, i32 0, i32 2
  %146 = load i64, ptr %11, align 8, !tbaa !9
  %147 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %145, i64 noundef %146) #4
  %148 = load double, ptr %13, align 8, !tbaa !11
  %149 = call noundef i32 @_ZN9elabtsaot14EmulatorBranch13set_pot_far_rEdPd(ptr noundef nonnull align 8 dereferenceable(120) %147, double noundef %148, ptr noundef null)
  %150 = icmp ne i32 %149, 0
  %151 = zext i1 %150 to i64
  %152 = select i1 %150, i32 128, i32 0
  %153 = load i32, ptr %15, align 4, !tbaa !13
  %154 = or i32 %153, %152
  store i32 %154, ptr %15, align 4, !tbaa !13
  %155 = load double, ptr %12, align 8, !tbaa !11
  %156 = load double, ptr %13, align 8, !tbaa !11
  %157 = fadd double %155, %156
  %158 = fcmp ole double %157, 1.500000e+02
  br i1 %158, label %159, label %176

159:                                              ; preds = %46
  %160 = getelementptr inbounds %"class.elabtsaot::SliceAnalog", ptr %16, i32 0, i32 4
  %161 = load i64, ptr %9, align 8, !tbaa !9
  %162 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %160, i64 noundef %161) #4
  %163 = load i64, ptr %10, align 8, !tbaa !9
  %164 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %162, i64 noundef %163) #4
  %165 = getelementptr inbounds %"class.elabtsaot::Atom", ptr %164, i32 0, i32 1
  %166 = load i64, ptr %11, align 8, !tbaa !9
  %167 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %165, i64 noundef %166) #4
  call void @_ZN9elabtsaot14EmulatorBranch9set_sw_scEb(ptr noundef nonnull align 8 dereferenceable(120) %167, i1 noundef zeroext true)
  %168 = getelementptr inbounds %"class.elabtsaot::SliceAnalog", ptr %16, i32 0, i32 4
  %169 = load i64, ptr %9, align 8, !tbaa !9
  %170 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %168, i64 noundef %169) #4
  %171 = load i64, ptr %10, align 8, !tbaa !9
  %172 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %170, i64 noundef %171) #4
  %173 = getelementptr inbounds %"class.elabtsaot::Atom", ptr %172, i32 0, i32 2
  %174 = load i64, ptr %11, align 8, !tbaa !9
  %175 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %173, i64 noundef %174) #4
  call void @_ZN9elabtsaot14EmulatorBranch9set_sw_scEb(ptr noundef nonnull align 8 dereferenceable(120) %175, i1 noundef zeroext true)
  br label %193

176:                                              ; preds = %46
  %177 = getelementptr inbounds %"class.elabtsaot::SliceAnalog", ptr %16, i32 0, i32 4
  %178 = load i64, ptr %9, align 8, !tbaa !9
  %179 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %177, i64 noundef %178) #4
  %180 = load i64, ptr %10, align 8, !tbaa !9
  %181 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %179, i64 noundef %180) #4
  %182 = getelementptr inbounds %"class.elabtsaot::Atom", ptr %181, i32 0, i32 1
  %183 = load i64, ptr %11, align 8, !tbaa !9
  %184 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %182, i64 noundef %183) #4
  call void @_ZN9elabtsaot14EmulatorBranch9set_sw_scEb(ptr noundef nonnull align 8 dereferenceable(120) %184, i1 noundef zeroext false)
  %185 = getelementptr inbounds %"class.elabtsaot::SliceAnalog", ptr %16, i32 0, i32 4
  %186 = load i64, ptr %9, align 8, !tbaa !9
  %187 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %185, i64 noundef %186) #4
  %188 = load i64, ptr %10, align 8, !tbaa !9
  %189 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %187, i64 noundef %188) #4
  %190 = getelementptr inbounds %"class.elabtsaot::Atom", ptr %189, i32 0, i32 2
  %191 = load i64, ptr %11, align 8, !tbaa !9
  %192 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %190, i64 noundef %191) #4
  call void @_ZN9elabtsaot14EmulatorBranch9set_sw_scEb(ptr noundef nonnull align 8 dereferenceable(120) %192, i1 noundef zeroext false)
  br label %193

193:                                              ; preds = %176, %159
  %194 = load i32, ptr %15, align 4, !tbaa !13
  store i32 %194, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %195

195:                                              ; preds = %193, %45, %29, %21
  %196 = load i32, ptr %7, align 4
  ret i32 %196
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

declare void @_ZN9elabtsaot14EmulatorBranch10set_sw_midEb(ptr noundef nonnull align 8 dereferenceable(120), i1 noundef zeroext) #3

declare void @_ZN9elabtsaot14EmulatorBranch15set_pot_near_swEb(ptr noundef nonnull align 8 dereferenceable(120), i1 noundef zeroext) #3

declare noundef i32 @_ZN9elabtsaot14EmulatorBranch14set_pot_near_rEdPd(ptr noundef nonnull align 8 dereferenceable(120), double noundef, ptr noundef) #3

declare void @_ZN9elabtsaot14EmulatorBranch14set_pot_far_swEb(ptr noundef nonnull align 8 dereferenceable(120), i1 noundef zeroext) #3

declare noundef i32 @_ZN9elabtsaot14EmulatorBranch13set_pot_far_rEdPd(ptr noundef nonnull align 8 dereferenceable(120), double noundef, ptr noundef) #3

declare void @_ZN9elabtsaot14EmulatorBranch9set_sw_scEb(ptr noundef nonnull align 8 dereferenceable(120), i1 noundef zeroext) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { "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 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !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"

%"struct.std::_Bit_reference" = type { ptr, i64 }

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN9elabtsaot4AtomESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 256) i32 @_ZN9elabtsaot11SliceAnalog11embrConnectEmmmdd(ptr noundef nonnull align 8 dereferenceable(184) %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, double noundef %4, double noundef %5) local_unnamed_addr #2 align 2 {
  %7 = alloca %"struct.std::_Bit_reference", align 8
  %8 = getelementptr inbounds i8, ptr %0, i64 160
  %9 = tail call noundef i64 @_ZNKSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  %.not = icmp ugt i64 %9, %1
  br i1 %.not, label %10, label %83

10:                                               ; preds = %6
  %11 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %1) #4
  %12 = tail call noundef i64 @_ZNKSt6vectorIN9elabtsaot4AtomESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  %.not62 = icmp ugt i64 %12, %2
  br i1 %.not62, label %13, label %83

13:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  %14 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %1) #4
  %15 = tail call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %2) #4
  %16 = getelementptr inbounds i8, ptr %15, i64 352
  %17 = tail call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %16, i64 noundef %3)
  %18 = extractvalue { ptr, i64 } %17, 0
  store ptr %18, ptr %7, align 8
  %19 = getelementptr inbounds i8, ptr %7, i64 8
  %20 = extractvalue { ptr, i64 } %17, 1
  store i64 %20, ptr %19, align 8
  %21 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  br i1 %21, label %.sink.split, label %83

.sink.split:                                      ; preds = %13
  %22 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %1) #4
  %23 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %2) #4
  %24 = getelementptr inbounds i8, ptr %23, i64 304
  %25 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %3) #4
  call void @_ZN9elabtsaot14EmulatorBranch10set_sw_midEb(ptr noundef nonnull align 8 dereferenceable(120) %25, i1 noundef zeroext false)
  %26 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %1) #4
  %27 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %2) #4
  %28 = getelementptr inbounds i8, ptr %27, i64 328
  %29 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %3) #4
  call void @_ZN9elabtsaot14EmulatorBranch10set_sw_midEb(ptr noundef nonnull align 8 dereferenceable(120) %29, i1 noundef zeroext false)
  %30 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %1) #4
  %31 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %2) #4
  %32 = getelementptr inbounds i8, ptr %31, i64 304
  %33 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %3) #4
  call void @_ZN9elabtsaot14EmulatorBranch15set_pot_near_swEb(ptr noundef nonnull align 8 dereferenceable(120) %33, i1 noundef zeroext true)
  %34 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %1) #4
  %35 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %2) #4
  %36 = getelementptr inbounds i8, ptr %35, i64 328
  %37 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %3) #4
  call void @_ZN9elabtsaot14EmulatorBranch15set_pot_near_swEb(ptr noundef nonnull align 8 dereferenceable(120) %37, i1 noundef zeroext true)
  %38 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %1) #4
  %39 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %2) #4
  %40 = getelementptr inbounds i8, ptr %39, i64 304
  %41 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %3) #4
  %42 = call noundef i32 @_ZN9elabtsaot14EmulatorBranch14set_pot_near_rEdPd(ptr noundef nonnull align 8 dereferenceable(120) %41, double noundef %4, ptr noundef null)
  %.not63 = icmp eq i32 %42, 0
  %43 = select i1 %.not63, i32 0, i32 16
  %44 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %1) #4
  %45 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %2) #4
  %46 = getelementptr inbounds i8, ptr %45, i64 328
  %47 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %3) #4
  %48 = call noundef i32 @_ZN9elabtsaot14EmulatorBranch14set_pot_near_rEdPd(ptr noundef nonnull align 8 dereferenceable(120) %47, double noundef %4, ptr noundef null)
  %.not64 = icmp eq i32 %48, 0
  %49 = select i1 %.not64, i32 0, i32 32
  %50 = or disjoint i32 %49, %43
  %51 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %1) #4
  %52 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %2) #4
  %53 = getelementptr inbounds i8, ptr %52, i64 304
  %54 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %3) #4
  call void @_ZN9elabtsaot14EmulatorBranch14set_pot_far_swEb(ptr noundef nonnull align 8 dereferenceable(120) %54, i1 noundef zeroext true)
  %55 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %1) #4
  %56 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %55, i64 noundef %2) #4
  %57 = getelementptr inbounds i8, ptr %56, i64 328
  %58 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %57, i64 noundef %3) #4
  call void @_ZN9elabtsaot14EmulatorBranch14set_pot_far_swEb(ptr noundef nonnull align 8 dereferenceable(120) %58, i1 noundef zeroext true)
  %59 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %1) #4
  %60 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %2) #4
  %61 = getelementptr inbounds i8, ptr %60, i64 304
  %62 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %3) #4
  %63 = call noundef i32 @_ZN9elabtsaot14EmulatorBranch13set_pot_far_rEdPd(ptr noundef nonnull align 8 dereferenceable(120) %62, double noundef %5, ptr noundef null)
  %.not65 = icmp eq i32 %63, 0
  %64 = select i1 %.not65, i32 0, i32 64
  %65 = or disjoint i32 %50, %64
  %66 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %1) #4
  %67 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef %2) #4
  %68 = getelementptr inbounds i8, ptr %67, i64 328
  %69 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %3) #4
  %70 = call noundef i32 @_ZN9elabtsaot14EmulatorBranch13set_pot_far_rEdPd(ptr noundef nonnull align 8 dereferenceable(120) %69, double noundef %5, ptr noundef null)
  %.not66 = icmp eq i32 %70, 0
  %71 = select i1 %.not66, i32 0, i32 128
  %72 = or disjoint i32 %65, %71
  %73 = fadd double %4, %5
  %74 = fcmp ole double %73, 1.500000e+02
  %75 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %1) #4
  %76 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %2) #4
  %77 = getelementptr inbounds i8, ptr %76, i64 304
  %78 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %3) #4
  call void @_ZN9elabtsaot14EmulatorBranch9set_sw_scEb(ptr noundef nonnull align 8 dereferenceable(120) %78, i1 noundef zeroext %74)
  %79 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN9elabtsaot4AtomESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %1) #4
  %80 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZNSt6vectorIN9elabtsaot4AtomESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %2) #4
  %81 = getelementptr inbounds i8, ptr %80, i64 328
  %82 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef %3) #4
  call void @_ZN9elabtsaot14EmulatorBranch9set_sw_scEb(ptr noundef nonnull align 8 dereferenceable(120) %82, i1 noundef zeroext %74)
  br label %83

83:                                               ; preds = %.sink.split, %13, %10, %6
  %.0 = phi i32 [ 20, %6 ], [ 21, %10 ], [ 22, %13 ], [ %72, %.sink.split ]
  ret i32 %.0
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN9elabtsaot14EmulatorBranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

declare void @_ZN9elabtsaot14EmulatorBranch10set_sw_midEb(ptr noundef nonnull align 8 dereferenceable(120), i1 noundef zeroext) local_unnamed_addr #3

declare void @_ZN9elabtsaot14EmulatorBranch15set_pot_near_swEb(ptr noundef nonnull align 8 dereferenceable(120), i1 noundef zeroext) local_unnamed_addr #3

declare noundef i32 @_ZN9elabtsaot14EmulatorBranch14set_pot_near_rEdPd(ptr noundef nonnull align 8 dereferenceable(120), double noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN9elabtsaot14EmulatorBranch14set_pot_far_swEb(ptr noundef nonnull align 8 dereferenceable(120), i1 noundef zeroext) local_unnamed_addr #3

declare noundef i32 @_ZN9elabtsaot14EmulatorBranch13set_pot_far_rEdPd(ptr noundef nonnull align 8 dereferenceable(120), double noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN9elabtsaot14EmulatorBranch9set_sw_scEb(ptr noundef nonnull align 8 dereferenceable(120), i1 noundef zeroext) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { "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 = { 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)"}


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