; LLVM IR from dmr-goncalves/HumanAwareRobotNavigation :: src/husky/husky_base/src/horizon_legacy (Message_data)

; 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.43 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [20 x i8], align 1

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZN9clearpath16DataSystemStatus16getVoltagesCountEv(ptr noundef nonnull align 8 dereferenceable(276)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZN9clearpath16DataSystemStatus16getCurrentsCountEv(ptr noundef nonnull align 8 dereferenceable(276)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZN9clearpath16DataSystemStatus20getTemperaturesCountEv(ptr noundef nonnull align 8 dereferenceable(276)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN9clearpath16DataSystemStatus9getUptimeEv(ptr noundef nonnull align 8 dereferenceable(276)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN9clearpath16DataSystemStatus10getVoltageEh(ptr noundef nonnull align 8 dereferenceable(276), i8 noundef zeroext) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN9clearpath16DataSystemStatus10getCurrentEh(ptr noundef nonnull align 8 dereferenceable(276), i8 noundef zeroext) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN9clearpath16DataSystemStatus14getTemperatureEh(ptr noundef nonnull align 8 dereferenceable(276), i8 noundef zeroext) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9clearpath16DataSystemStatus12printMessageERSo(ptr noundef nonnull align 8 dereferenceable(276) %0, ptr noundef nonnull align 8 dereferenceable(8) %1) unnamed_addr #3 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %8 = load ptr, ptr %3, align 8
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  %10 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef @.str.129)
  %11 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef @.str.43)
  %14 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef @.str.130)
  %17 = call noundef i32 @_ZN9clearpath16DataSystemStatus9getUptimeEv(ptr noundef nonnull align 8 dereferenceable(276) %8)
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %16, i32 noundef %17)
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef @.str.131)
  %22 = call noundef zeroext i8 @_ZN9clearpath16DataSystemStatus16getVoltagesCountEv(ptr noundef nonnull align 8 dereferenceable(276) %8)
  %23 = zext i8 %22 to i32
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %21, i32 noundef %23)
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef @.str.132)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %49, %2
  %29 = load i32, ptr %5, align 4, !tbaa !9
  %30 = call noundef zeroext i8 @_ZN9clearpath16DataSystemStatus16getVoltagesCountEv(ptr noundef nonnull align 8 dereferenceable(276) %8)
  %31 = zext i8 %30 to i32
  %32 = icmp ult i32 %29, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %52

34:                                               ; preds = %28
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = load i32, ptr %5, align 4, !tbaa !9
  %37 = trunc i32 %36 to i8
  %38 = call noundef double @_ZN9clearpath16DataSystemStatus10getVoltageEh(ptr noundef nonnull align 8 dereferenceable(276) %8, i8 noundef zeroext %37)
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %35, double noundef %38)
  %40 = load i32, ptr %5, align 4, !tbaa !9
  %41 = call noundef zeroext i8 @_ZN9clearpath16DataSystemStatus16getVoltagesCountEv(ptr noundef nonnull align 8 dereferenceable(276) %8)
  %42 = zext i8 %41 to i32
  %43 = sub nsw i32 %42, 1
  %44 = icmp ne i32 %40, %43
  br i1 %44, label %45, label %48

45:                                               ; preds = %34
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef @.str.133)
  br label %48

48:                                               ; preds = %45, %34
  br label %49

49:                                               ; preds = %48
  %50 = load i32, ptr %5, align 4, !tbaa !9
  %51 = add i32 %50, 1
  store i32 %51, ptr %5, align 4, !tbaa !9
  br label %28, !llvm.loop !11

52:                                               ; preds = %33
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef @.str.134)
  %57 = call noundef zeroext i8 @_ZN9clearpath16DataSystemStatus16getCurrentsCountEv(ptr noundef nonnull align 8 dereferenceable(276) %8)
  %58 = zext i8 %57 to i32
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %56, i32 noundef %58)
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef @.str.135)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %84, %52
  %64 = load i32, ptr %6, align 4, !tbaa !9
  %65 = call noundef zeroext i8 @_ZN9clearpath16DataSystemStatus16getCurrentsCountEv(ptr noundef nonnull align 8 dereferenceable(276) %8)
  %66 = zext i8 %65 to i32
  %67 = icmp ult i32 %64, %66
  br i1 %67, label %69, label %68

68:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %87

69:                                               ; preds = %63
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = load i32, ptr %6, align 4, !tbaa !9
  %72 = trunc i32 %71 to i8
  %73 = call noundef double @_ZN9clearpath16DataSystemStatus10getCurrentEh(ptr noundef nonnull align 8 dereferenceable(276) %8, i8 noundef zeroext %72)
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %70, double noundef %73)
  %75 = load i32, ptr %6, align 4, !tbaa !9
  %76 = call noundef zeroext i8 @_ZN9clearpath16DataSystemStatus16getCurrentsCountEv(ptr noundef nonnull align 8 dereferenceable(276) %8)
  %77 = zext i8 %76 to i32
  %78 = sub nsw i32 %77, 1
  %79 = icmp ne i32 %75, %78
  br i1 %79, label %80, label %83

80:                                               ; preds = %69
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef @.str.133)
  br label %83

83:                                               ; preds = %80, %69
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr %6, align 4, !tbaa !9
  %86 = add i32 %85, 1
  store i32 %86, ptr %6, align 4, !tbaa !9
  br label %63, !llvm.loop !13

87:                                               ; preds = %68
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef @.str.120)
  %92 = call noundef zeroext i8 @_ZN9clearpath16DataSystemStatus20getTemperaturesCountEv(ptr noundef nonnull align 8 dereferenceable(276) %8)
  %93 = zext i8 %92 to i32
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %91, i32 noundef %93)
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %94, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %96, ptr noundef @.str.136)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %98

98:                                               ; preds = %119, %87
  %99 = load i32, ptr %7, align 4, !tbaa !9
  %100 = call noundef zeroext i8 @_ZN9clearpath16DataSystemStatus20getTemperaturesCountEv(ptr noundef nonnull align 8 dereferenceable(276) %8)
  %101 = zext i8 %100 to i32
  %102 = icmp ult i32 %99, %101
  br i1 %102, label %104, label %103

103:                                              ; preds = %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %122

104:                                              ; preds = %98
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = load i32, ptr %7, align 4, !tbaa !9
  %107 = trunc i32 %106 to i8
  %108 = call noundef double @_ZN9clearpath16DataSystemStatus14getTemperatureEh(ptr noundef nonnull align 8 dereferenceable(276) %8, i8 noundef zeroext %107)
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %105, double noundef %108)
  %110 = load i32, ptr %7, align 4, !tbaa !9
  %111 = call noundef zeroext i8 @_ZN9clearpath16DataSystemStatus20getTemperaturesCountEv(ptr noundef nonnull align 8 dereferenceable(276) %8)
  %112 = zext i8 %111 to i32
  %113 = sub nsw i32 %112, 1
  %114 = icmp ne i32 %110, %113
  br i1 %114, label %115, label %118

115:                                              ; preds = %104
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %116, ptr noundef @.str.133)
  br label %118

118:                                              ; preds = %115, %104
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr %7, align 4, !tbaa !9
  %121 = add i32 %120, 1
  store i32 %121, ptr %7, align 4, !tbaa !9
  br label %98, !llvm.loop !14

122:                                              ; preds = %103
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  ret ptr %125
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 #2 = { "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 = { 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 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


; 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.43 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #0

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZN9clearpath16DataSystemStatus16getVoltagesCountEv(ptr noundef nonnull align 8 dereferenceable(276)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZN9clearpath16DataSystemStatus16getCurrentsCountEv(ptr noundef nonnull align 8 dereferenceable(276)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZN9clearpath16DataSystemStatus20getTemperaturesCountEv(ptr noundef nonnull align 8 dereferenceable(276)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN9clearpath16DataSystemStatus9getUptimeEv(ptr noundef nonnull align 8 dereferenceable(276)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN9clearpath16DataSystemStatus10getVoltageEh(ptr noundef nonnull align 8 dereferenceable(276), i8 noundef zeroext) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN9clearpath16DataSystemStatus10getCurrentEh(ptr noundef nonnull align 8 dereferenceable(276), i8 noundef zeroext) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN9clearpath16DataSystemStatus14getTemperatureEh(ptr noundef nonnull align 8 dereferenceable(276), i8 noundef zeroext) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9clearpath16DataSystemStatus12printMessageERSo(ptr noundef nonnull align 8 dereferenceable(276) %0, ptr noundef nonnull returned align 8 dereferenceable(8) %1) unnamed_addr #2 align 2 {
  %3 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.129)
  %4 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %5 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.43)
  %6 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %7 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.130)
  %8 = tail call noundef i32 @_ZN9clearpath16DataSystemStatus9getUptimeEv(ptr noundef nonnull align 8 dereferenceable(276) %0)
  %9 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef %8)
  %10 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %11 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.131)
  %12 = tail call noundef zeroext i8 @_ZN9clearpath16DataSystemStatus16getVoltagesCountEv(ptr noundef nonnull align 8 dereferenceable(276) %0)
  %13 = zext i8 %12 to i32
  %14 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef %13)
  %15 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %16 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.132)
  %17 = tail call noundef zeroext i8 @_ZN9clearpath16DataSystemStatus16getVoltagesCountEv(ptr noundef nonnull align 8 dereferenceable(276) %0)
  %.not44 = icmp eq i8 %17, 0
  br i1 %.not44, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %34, %2
  %18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %19 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.134)
  %20 = tail call noundef zeroext i8 @_ZN9clearpath16DataSystemStatus16getCurrentsCountEv(ptr noundef nonnull align 8 dereferenceable(276) %0)
  %21 = zext i8 %20 to i32
  %22 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %19, i32 noundef %21)
  %23 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %24 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.135)
  %25 = tail call noundef zeroext i8 @_ZN9clearpath16DataSystemStatus16getCurrentsCountEv(ptr noundef nonnull align 8 dereferenceable(276) %0)
  %.not45 = icmp eq i8 %25, 0
  br i1 %.not45, label %._crit_edge39, label %.lr.ph38

.lr.ph:                                           ; preds = %2, %34
  %.03235 = phi i32 [ %35, %34 ], [ 0, %2 ]
  %26 = trunc nuw i32 %.03235 to i8
  %27 = tail call noundef double @_ZN9clearpath16DataSystemStatus10getVoltageEh(ptr noundef nonnull align 8 dereferenceable(276) %0, i8 noundef zeroext %26)
  %28 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %1, double noundef %27)
  %29 = tail call noundef zeroext i8 @_ZN9clearpath16DataSystemStatus16getVoltagesCountEv(ptr noundef nonnull align 8 dereferenceable(276) %0)
  %30 = zext i8 %29 to i32
  %31 = add nsw i32 %30, -1
  %.not34 = icmp eq i32 %.03235, %31
  br i1 %.not34, label %34, label %32

32:                                               ; preds = %.lr.ph
  %33 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.133)
  br label %34

34:                                               ; preds = %.lr.ph, %32
  %35 = add nuw nsw i32 %.03235, 1
  %36 = tail call noundef zeroext i8 @_ZN9clearpath16DataSystemStatus16getVoltagesCountEv(ptr noundef nonnull align 8 dereferenceable(276) %0)
  %37 = zext i8 %36 to i32
  %38 = icmp ult i32 %35, %37
  br i1 %38, label %.lr.ph, label %._crit_edge, !llvm.loop !5

._crit_edge39:                                    ; preds = %55, %._crit_edge
  %39 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %40 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.120)
  %41 = tail call noundef zeroext i8 @_ZN9clearpath16DataSystemStatus20getTemperaturesCountEv(ptr noundef nonnull align 8 dereferenceable(276) %0)
  %42 = zext i8 %41 to i32
  %43 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %40, i32 noundef %42)
  %44 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %45 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.136)
  %46 = tail call noundef zeroext i8 @_ZN9clearpath16DataSystemStatus20getTemperaturesCountEv(ptr noundef nonnull align 8 dereferenceable(276) %0)
  %.not46 = icmp eq i8 %46, 0
  br i1 %.not46, label %._crit_edge43, label %.lr.ph42

.lr.ph38:                                         ; preds = %._crit_edge, %55
  %.03136 = phi i32 [ %56, %55 ], [ 0, %._crit_edge ]
  %47 = trunc nuw i32 %.03136 to i8
  %48 = tail call noundef double @_ZN9clearpath16DataSystemStatus10getCurrentEh(ptr noundef nonnull align 8 dereferenceable(276) %0, i8 noundef zeroext %47)
  %49 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %1, double noundef %48)
  %50 = tail call noundef zeroext i8 @_ZN9clearpath16DataSystemStatus16getCurrentsCountEv(ptr noundef nonnull align 8 dereferenceable(276) %0)
  %51 = zext i8 %50 to i32
  %52 = add nsw i32 %51, -1
  %.not33 = icmp eq i32 %.03136, %52
  br i1 %.not33, label %55, label %53

53:                                               ; preds = %.lr.ph38
  %54 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.133)
  br label %55

55:                                               ; preds = %.lr.ph38, %53
  %56 = add nuw nsw i32 %.03136, 1
  %57 = tail call noundef zeroext i8 @_ZN9clearpath16DataSystemStatus16getCurrentsCountEv(ptr noundef nonnull align 8 dereferenceable(276) %0)
  %58 = zext i8 %57 to i32
  %59 = icmp ult i32 %56, %58
  br i1 %59, label %.lr.ph38, label %._crit_edge39, !llvm.loop !7

._crit_edge43:                                    ; preds = %69, %._crit_edge39
  %60 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret ptr %1

.lr.ph42:                                         ; preds = %._crit_edge39, %69
  %.040 = phi i32 [ %70, %69 ], [ 0, %._crit_edge39 ]
  %61 = trunc nuw i32 %.040 to i8
  %62 = tail call noundef double @_ZN9clearpath16DataSystemStatus14getTemperatureEh(ptr noundef nonnull align 8 dereferenceable(276) %0, i8 noundef zeroext %61)
  %63 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %1, double noundef %62)
  %64 = tail call noundef zeroext i8 @_ZN9clearpath16DataSystemStatus20getTemperaturesCountEv(ptr noundef nonnull align 8 dereferenceable(276) %0)
  %65 = zext i8 %64 to i32
  %66 = add nsw i32 %65, -1
  %.not = icmp eq i32 %.040, %66
  br i1 %.not, label %69, label %67

67:                                               ; preds = %.lr.ph42
  %68 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.133)
  br label %69

69:                                               ; preds = %.lr.ph42, %67
  %70 = add nuw nsw i32 %.040, 1
  %71 = tail call noundef zeroext i8 @_ZN9clearpath16DataSystemStatus20getTemperaturesCountEv(ptr noundef nonnull align 8 dereferenceable(276) %0)
  %72 = zext i8 %71 to i32
  %73 = icmp ult i32 %70, %72
  br i1 %73, label %.lr.ph42, label %._crit_edge43, !llvm.loop !8
}

attributes #0 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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" }

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}


; Effective O3 passes: GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass