; LLVM IR from Samson-Mano/EM_Propogation_simulation :: EM_Propogation_simulation/src/ImGui/implot.ll (ZN6ImPlot10FormatTimeERK10ImPlotTimePciib)

; 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.ImPlotContext = type { %struct.ImPool.34, %struct.ImPool.36, ptr, ptr, ptr, ptr, ptr, %struct.ImPlotTicker, %struct.ImPlotAnnotationCollection, %struct.ImPlotTagCollection, i8, [3 x i8], %struct.ImPlotStyle, %struct.ImVector.6, %struct.ImVector.7, %struct.ImPlotColormapData, %struct.ImVector.10, %struct.tm, %struct.ImVector.42, %struct.ImVector.42, %struct.ImVector.10, i32, i32, %struct.ImPlotNextPlotData, %struct.ImPlotNextItemData, %struct.ImPlotInputMap, i8, %struct.ImGuiTextBuffer, ptr, %struct.ImPool.43, ptr, ptr }
%struct.ImPool.34 = type { %struct.ImVector.35, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.35 = type { i32, i32, ptr }
%struct.ImGuiStorage = type { %struct.ImVector.4 }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImPool.36 = type { %struct.ImVector.37, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.37 = type { i32, i32, ptr }
%struct.ImPlotTicker = type <{ %struct.ImVector.38, %struct.ImGuiTextBuffer, %struct.ImVec2, %struct.ImVec2, i32, [4 x i8] }>
%struct.ImVector.38 = type { i32, i32, ptr }
%struct.ImVec2 = type { float, float }
%struct.ImPlotAnnotationCollection = type <{ %struct.ImVector.39, %struct.ImGuiTextBuffer, i32, [4 x i8] }>
%struct.ImVector.39 = type { i32, i32, ptr }
%struct.ImPlotTagCollection = type <{ %struct.ImVector.40, %struct.ImGuiTextBuffer, i32, [4 x i8] }>
%struct.ImVector.40 = type { i32, i32, ptr }
%struct.ImPlotStyle = type <{ float, i32, float, float, float, float, float, float, float, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, [21 x %struct.ImVec4], i32, i8, i8, i8, i8 }>
%struct.ImVec4 = type { float, float, float, float }
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImPlotColormapData = type <{ %struct.ImVector.9, %struct.ImVector.10, %struct.ImVector.10, %struct.ImVector.9, %struct.ImVector.10, %struct.ImVector.10, %struct.ImGuiTextBuffer, %struct.ImVector.10, %struct.ImVector.41, %struct.ImGuiStorage, i32, [4 x i8] }>
%struct.ImVector.9 = type { i32, i32, ptr }
%struct.ImVector.41 = type { i32, i32, ptr }
%struct.tm = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, ptr }
%struct.ImVector.42 = type { i32, i32, ptr }
%struct.ImVector.10 = type { i32, i32, ptr }
%struct.ImPlotNextPlotData = type { [6 x i32], [6 x %struct.ImPlotRange], [6 x i8], [6 x i8], [6 x ptr], [6 x ptr] }
%struct.ImPlotRange = type { double, double }
%struct.ImPlotNextItemData = type { [5 x %struct.ImVec4], float, i32, float, float, float, float, float, float, float, i8, i8, i8, i8, i8, i8, i32 }
%struct.ImPlotInputMap = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float }
%struct.ImGuiTextBuffer = type { %struct.ImVector.24 }
%struct.ImVector.24 = type { i32, i32, ptr }
%struct.ImPool.43 = type { %struct.ImVector.44, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.44 = type { i32, i32, ptr }
%struct.ImPlotTime = type <{ i64, i32, [4 x i8] }>

@GImPlot = external dso_local global ptr, align 8
@.str.49 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [5 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6ImPlot10FormatTimeERK10ImPlotTimePciib(ptr noundef nonnull align 8 dereferenceable(12) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i1 noundef zeroext %4) #2 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  %21 = zext i1 %4 to i8
  store i8 %21, ptr %11, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %22 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.ImPlotContext, ptr %22, i32 0, i32 17
  store ptr %23, ptr %12, align 8, !tbaa !5
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = load ptr, ptr %12, align 8, !tbaa !5
  %26 = call noundef ptr @_ZN6ImPlot7GetTimeERK10ImPlotTimeP2tm(ptr noundef nonnull align 8 dereferenceable(12) %24, ptr noundef %25)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.ImPlotTime, ptr %27, i32 0, i32 1
  %29 = load i32, ptr %28, align 8, !tbaa !13
  %30 = srem i32 %29, 1000
  store i32 %30, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.ImPlotTime, ptr %31, i32 0, i32 1
  %33 = load i32, ptr %32, align 8, !tbaa !13
  %34 = sdiv i32 %33, 1000
  store i32 %34, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %35 = load ptr, ptr %12, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.tm, ptr %35, i32 0, i32 0
  %37 = load i32, ptr %36, align 8, !tbaa !16
  store i32 %37, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %38 = load ptr, ptr %12, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.tm, ptr %38, i32 0, i32 1
  %40 = load i32, ptr %39, align 4, !tbaa !18
  store i32 %40, ptr %16, align 4, !tbaa !9
  %41 = load i8, ptr %11, align 1, !tbaa !11, !range !19, !noundef !20
  %42 = trunc i8 %41 to i1
  br i1 %42, label %43, label %116

43:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.tm, ptr %44, i32 0, i32 2
  %46 = load i32, ptr %45, align 8, !tbaa !21
  store i32 %46, ptr %17, align 4, !tbaa !9
  %47 = load i32, ptr %10, align 4, !tbaa !9
  switch i32 %47, label %114 [
    i32 1, label %48
    i32 2, label %55
    i32 3, label %63
    i32 4, label %70
    i32 5, label %76
    i32 6, label %84
    i32 7, label %93
    i32 8, label %101
    i32 9, label %108
  ]

48:                                               ; preds = %43
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = load i32, ptr %9, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = load i32, ptr %14, align 4, !tbaa !9
  %53 = load i32, ptr %13, align 4, !tbaa !9
  %54 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %49, i64 noundef %51, ptr noundef @.str.49, i32 noundef %52, i32 noundef %53)
  store i32 %54, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %115

55:                                               ; preds = %43
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = load i32, ptr %9, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = load i32, ptr %15, align 4, !tbaa !9
  %60 = load i32, ptr %14, align 4, !tbaa !9
  %61 = load i32, ptr %13, align 4, !tbaa !9
  %62 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %56, i64 noundef %58, ptr noundef @.str.50, i32 noundef %59, i32 noundef %60, i32 noundef %61)
  store i32 %62, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %115

63:                                               ; preds = %43
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = load i32, ptr %9, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = load i32, ptr %15, align 4, !tbaa !9
  %68 = load i32, ptr %14, align 4, !tbaa !9
  %69 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %64, i64 noundef %66, ptr noundef @.str.51, i32 noundef %67, i32 noundef %68)
  store i32 %69, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %115

70:                                               ; preds = %43
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = load i32, ptr %9, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = load i32, ptr %15, align 4, !tbaa !9
  %75 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %71, i64 noundef %73, ptr noundef @.str.52, i32 noundef %74)
  store i32 %75, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %115

76:                                               ; preds = %43
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = load i32, ptr %9, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = load i32, ptr %16, align 4, !tbaa !9
  %81 = load i32, ptr %15, align 4, !tbaa !9
  %82 = load i32, ptr %14, align 4, !tbaa !9
  %83 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %77, i64 noundef %79, ptr noundef @.str.53, i32 noundef %80, i32 noundef %81, i32 noundef %82)
  store i32 %83, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %115

84:                                               ; preds = %43
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = load i32, ptr %9, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = load i32, ptr %17, align 4, !tbaa !9
  %89 = load i32, ptr %16, align 4, !tbaa !9
  %90 = load i32, ptr %15, align 4, !tbaa !9
  %91 = load i32, ptr %14, align 4, !tbaa !9
  %92 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %85, i64 noundef %87, ptr noundef @.str.54, i32 noundef %88, i32 noundef %89, i32 noundef %90, i32 noundef %91)
  store i32 %92, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %115

93:                                               ; preds = %43
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = load i32, ptr %9, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = load i32, ptr %17, align 4, !tbaa !9
  %98 = load i32, ptr %16, align 4, !tbaa !9
  %99 = load i32, ptr %15, align 4, !tbaa !9
  %100 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %94, i64 noundef %96, ptr noundef @.str.55, i32 noundef %97, i32 noundef %98, i32 noundef %99)
  store i32 %100, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %115

101:                                              ; preds = %43
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = load i32, ptr %9, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = load i32, ptr %17, align 4, !tbaa !9
  %106 = load i32, ptr %16, align 4, !tbaa !9
  %107 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %102, i64 noundef %104, ptr noundef @.str.56, i32 noundef %105, i32 noundef %106)
  store i32 %107, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %115

108:                                              ; preds = %43
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = load i32, ptr %9, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = load i32, ptr %17, align 4, !tbaa !9
  %113 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %109, i64 noundef %111, ptr noundef @.str.57, i32 noundef %112)
  store i32 %113, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %115

114:                                              ; preds = %43
  store i32 0, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %115

115:                                              ; preds = %114, %108, %101, %93, %84, %76, %70, %63, %55, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %216

116:                                              ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %117 = load ptr, ptr %12, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.tm, ptr %117, i32 0, i32 2
  %119 = load i32, ptr %118, align 8, !tbaa !21
  %120 = icmp slt i32 %119, 12
  br i1 %120, label %121, label %122

121:                                              ; preds = %116
  br label %123

122:                                              ; preds = %116
  br label %123

123:                                              ; preds = %122, %121
  %124 = phi ptr [ @.str.58, %121 ], [ @.str.59, %122 ]
  %125 = getelementptr inbounds [3 x i8], ptr %124, i64 0, i64 0
  store ptr %125, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %126 = load ptr, ptr %12, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.tm, ptr %126, i32 0, i32 2
  %128 = load i32, ptr %127, align 8, !tbaa !21
  %129 = icmp eq i32 %128, 0
  br i1 %129, label %135, label %130

130:                                              ; preds = %123
  %131 = load ptr, ptr %12, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.tm, ptr %131, i32 0, i32 2
  %133 = load i32, ptr %132, align 8, !tbaa !21
  %134 = icmp eq i32 %133, 12
  br i1 %134, label %135, label %136

135:                                              ; preds = %130, %123
  br label %141

136:                                              ; preds = %130
  %137 = load ptr, ptr %12, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.tm, ptr %137, i32 0, i32 2
  %139 = load i32, ptr %138, align 8, !tbaa !21
  %140 = srem i32 %139, 12
  br label %141

141:                                              ; preds = %136, %135
  %142 = phi i32 [ 12, %135 ], [ %140, %136 ]
  store i32 %142, ptr %20, align 4, !tbaa !9
  %143 = load i32, ptr %10, align 4, !tbaa !9
  switch i32 %143, label %214 [
    i32 1, label %144
    i32 2, label %151
    i32 3, label %159
    i32 4, label %166
    i32 5, label %172
    i32 6, label %180
    i32 7, label %190
    i32 8, label %199
    i32 9, label %207
  ]

144:                                              ; preds = %141
  %145 = load ptr, ptr %8, align 8, !tbaa !5
  %146 = load i32, ptr %9, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  %148 = load i32, ptr %14, align 4, !tbaa !9
  %149 = load i32, ptr %13, align 4, !tbaa !9
  %150 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %145, i64 noundef %147, ptr noundef @.str.49, i32 noundef %148, i32 noundef %149)
  store i32 %150, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %215

151:                                              ; preds = %141
  %152 = load ptr, ptr %8, align 8, !tbaa !5
  %153 = load i32, ptr %9, align 4, !tbaa !9
  %154 = sext i32 %153 to i64
  %155 = load i32, ptr %15, align 4, !tbaa !9
  %156 = load i32, ptr %14, align 4, !tbaa !9
  %157 = load i32, ptr %13, align 4, !tbaa !9
  %158 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %152, i64 noundef %154, ptr noundef @.str.50, i32 noundef %155, i32 noundef %156, i32 noundef %157)
  store i32 %158, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %215

159:                                              ; preds = %141
  %160 = load ptr, ptr %8, align 8, !tbaa !5
  %161 = load i32, ptr %9, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = load i32, ptr %15, align 4, !tbaa !9
  %164 = load i32, ptr %14, align 4, !tbaa !9
  %165 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %160, i64 noundef %162, ptr noundef @.str.51, i32 noundef %163, i32 noundef %164)
  store i32 %165, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %215

166:                                              ; preds = %141
  %167 = load ptr, ptr %8, align 8, !tbaa !5
  %168 = load i32, ptr %9, align 4, !tbaa !9
  %169 = sext i32 %168 to i64
  %170 = load i32, ptr %15, align 4, !tbaa !9
  %171 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %167, i64 noundef %169, ptr noundef @.str.52, i32 noundef %170)
  store i32 %171, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %215

172:                                              ; preds = %141
  %173 = load ptr, ptr %8, align 8, !tbaa !5
  %174 = load i32, ptr %9, align 4, !tbaa !9
  %175 = sext i32 %174 to i64
  %176 = load i32, ptr %16, align 4, !tbaa !9
  %177 = load i32, ptr %15, align 4, !tbaa !9
  %178 = load i32, ptr %14, align 4, !tbaa !9
  %179 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %173, i64 noundef %175, ptr noundef @.str.53, i32 noundef %176, i32 noundef %177, i32 noundef %178)
  store i32 %179, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %215

180:                                              ; preds = %141
  %181 = load ptr, ptr %8, align 8, !tbaa !5
  %182 = load i32, ptr %9, align 4, !tbaa !9
  %183 = sext i32 %182 to i64
  %184 = load i32, ptr %20, align 4, !tbaa !9
  %185 = load i32, ptr %16, align 4, !tbaa !9
  %186 = load i32, ptr %15, align 4, !tbaa !9
  %187 = load i32, ptr %14, align 4, !tbaa !9
  %188 = load ptr, ptr %19, align 8, !tbaa !5
  %189 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %181, i64 noundef %183, ptr noundef @.str.60, i32 noundef %184, i32 noundef %185, i32 noundef %186, i32 noundef %187, ptr noundef %188)
  store i32 %189, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %215

190:                                              ; preds = %141
  %191 = load ptr, ptr %8, align 8, !tbaa !5
  %192 = load i32, ptr %9, align 4, !tbaa !9
  %193 = sext i32 %192 to i64
  %194 = load i32, ptr %20, align 4, !tbaa !9
  %195 = load i32, ptr %16, align 4, !tbaa !9
  %196 = load i32, ptr %15, align 4, !tbaa !9
  %197 = load ptr, ptr %19, align 8, !tbaa !5
  %198 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %191, i64 noundef %193, ptr noundef @.str.61, i32 noundef %194, i32 noundef %195, i32 noundef %196, ptr noundef %197)
  store i32 %198, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %215

199:                                              ; preds = %141
  %200 = load ptr, ptr %8, align 8, !tbaa !5
  %201 = load i32, ptr %9, align 4, !tbaa !9
  %202 = sext i32 %201 to i64
  %203 = load i32, ptr %20, align 4, !tbaa !9
  %204 = load i32, ptr %16, align 4, !tbaa !9
  %205 = load ptr, ptr %19, align 8, !tbaa !5
  %206 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %200, i64 noundef %202, ptr noundef @.str.62, i32 noundef %203, i32 noundef %204, ptr noundef %205)
  store i32 %206, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %215

207:                                              ; preds = %141
  %208 = load ptr, ptr %8, align 8, !tbaa !5
  %209 = load i32, ptr %9, align 4, !tbaa !9
  %210 = sext i32 %209 to i64
  %211 = load i32, ptr %20, align 4, !tbaa !9
  %212 = load ptr, ptr %19, align 8, !tbaa !5
  %213 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %208, i64 noundef %210, ptr noundef @.str.63, i32 noundef %211, ptr noundef %212)
  store i32 %213, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %215

214:                                              ; preds = %141
  store i32 0, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %215

215:                                              ; preds = %214, %207, %199, %190, %180, %172, %166, %159, %151, %144
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %216

216:                                              ; preds = %215, %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  %217 = load i32, ptr %6, align 4
  ret i32 %217
}

declare noundef i32 @_Z14ImFormatStringPcmPKcz(ptr noundef, i64 noundef, ptr noundef, ...) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"_ZTS10ImPlotTime", !15, i64 0, !10, i64 8}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !10, i64 0}
!17 = !{!"_ZTS2tm", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !15, i64 40, !6, i64 48}
!18 = !{!17, !10, i64 4}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!17, !10, i64 8}


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

@GImPlot = external dso_local local_unnamed_addr global ptr, align 8
@.str.49 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [5 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6ImPlot10FormatTimeERK10ImPlotTimePciib(ptr noundef nonnull align 8 dereferenceable(12) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i1 noundef zeroext %4) local_unnamed_addr #1 {
  %6 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %6, i64 992
  %8 = tail call noundef ptr @_ZN6ImPlot7GetTimeERK10ImPlotTimeP2tm(ptr noundef nonnull align 8 dereferenceable(12) %0, ptr noundef nonnull %7)
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load i32, ptr %9, align 8, !tbaa !9
  %11 = srem i32 %10, 1000
  %12 = sdiv i32 %10, 1000
  %13 = load i32, ptr %7, align 8, !tbaa !13
  %14 = getelementptr inbounds i8, ptr %6, i64 996
  %15 = load i32, ptr %14, align 4, !tbaa !15
  %16 = getelementptr inbounds i8, ptr %6, i64 1000
  %17 = load i32, ptr %16, align 8, !tbaa !16
  br i1 %4, label %18, label %46

18:                                               ; preds = %5
  switch i32 %3, label %79 [
    i32 1, label %19
    i32 2, label %22
    i32 3, label %25
    i32 4, label %28
    i32 5, label %31
    i32 6, label %34
    i32 7, label %37
    i32 8, label %40
    i32 9, label %43
  ]

19:                                               ; preds = %18
  %20 = sext i32 %2 to i64
  %21 = tail call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %1, i64 noundef %20, ptr noundef nonnull @.str.49, i32 noundef %12, i32 noundef %11)
  br label %79

22:                                               ; preds = %18
  %23 = sext i32 %2 to i64
  %24 = tail call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %1, i64 noundef %23, ptr noundef nonnull @.str.50, i32 noundef %13, i32 noundef %12, i32 noundef %11)
  br label %79

25:                                               ; preds = %18
  %26 = sext i32 %2 to i64
  %27 = tail call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %1, i64 noundef %26, ptr noundef nonnull @.str.51, i32 noundef %13, i32 noundef %12)
  br label %79

28:                                               ; preds = %18
  %29 = sext i32 %2 to i64
  %30 = tail call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %1, i64 noundef %29, ptr noundef nonnull @.str.52, i32 noundef %13)
  br label %79

31:                                               ; preds = %18
  %32 = sext i32 %2 to i64
  %33 = tail call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %1, i64 noundef %32, ptr noundef nonnull @.str.53, i32 noundef %15, i32 noundef %13, i32 noundef %12)
  br label %79

34:                                               ; preds = %18
  %35 = sext i32 %2 to i64
  %36 = tail call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %1, i64 noundef %35, ptr noundef nonnull @.str.54, i32 noundef %17, i32 noundef %15, i32 noundef %13, i32 noundef %12)
  br label %79

37:                                               ; preds = %18
  %38 = sext i32 %2 to i64
  %39 = tail call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %1, i64 noundef %38, ptr noundef nonnull @.str.55, i32 noundef %17, i32 noundef %15, i32 noundef %13)
  br label %79

40:                                               ; preds = %18
  %41 = sext i32 %2 to i64
  %42 = tail call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %1, i64 noundef %41, ptr noundef nonnull @.str.56, i32 noundef %17, i32 noundef %15)
  br label %79

43:                                               ; preds = %18
  %44 = sext i32 %2 to i64
  %45 = tail call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %1, i64 noundef %44, ptr noundef nonnull @.str.57, i32 noundef %17)
  br label %79

46:                                               ; preds = %5
  %47 = icmp slt i32 %17, 12
  %.str.58..str.59 = select i1 %47, ptr @.str.58, ptr @.str.59
  switch i32 %17, label %48 [
    i32 0, label %50
    i32 12, label %50
  ]

48:                                               ; preds = %46
  %49 = srem i32 %17, 12
  br label %50

50:                                               ; preds = %46, %46, %48
  %51 = phi i32 [ %49, %48 ], [ 12, %46 ], [ 12, %46 ]
  switch i32 %3, label %79 [
    i32 1, label %52
    i32 2, label %55
    i32 3, label %58
    i32 4, label %61
    i32 5, label %64
    i32 6, label %67
    i32 7, label %70
    i32 8, label %73
    i32 9, label %76
  ]

52:                                               ; preds = %50
  %53 = sext i32 %2 to i64
  %54 = tail call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %1, i64 noundef %53, ptr noundef nonnull @.str.49, i32 noundef %12, i32 noundef %11)
  br label %79

55:                                               ; preds = %50
  %56 = sext i32 %2 to i64
  %57 = tail call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %1, i64 noundef %56, ptr noundef nonnull @.str.50, i32 noundef %13, i32 noundef %12, i32 noundef %11)
  br label %79

58:                                               ; preds = %50
  %59 = sext i32 %2 to i64
  %60 = tail call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %1, i64 noundef %59, ptr noundef nonnull @.str.51, i32 noundef %13, i32 noundef %12)
  br label %79

61:                                               ; preds = %50
  %62 = sext i32 %2 to i64
  %63 = tail call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %1, i64 noundef %62, ptr noundef nonnull @.str.52, i32 noundef %13)
  br label %79

64:                                               ; preds = %50
  %65 = sext i32 %2 to i64
  %66 = tail call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %1, i64 noundef %65, ptr noundef nonnull @.str.53, i32 noundef %15, i32 noundef %13, i32 noundef %12)
  br label %79

67:                                               ; preds = %50
  %68 = sext i32 %2 to i64
  %69 = tail call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %1, i64 noundef %68, ptr noundef nonnull @.str.60, i32 noundef %51, i32 noundef %15, i32 noundef %13, i32 noundef %12, ptr noundef nonnull %.str.58..str.59)
  br label %79

70:                                               ; preds = %50
  %71 = sext i32 %2 to i64
  %72 = tail call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %1, i64 noundef %71, ptr noundef nonnull @.str.61, i32 noundef %51, i32 noundef %15, i32 noundef %13, ptr noundef nonnull %.str.58..str.59)
  br label %79

73:                                               ; preds = %50
  %74 = sext i32 %2 to i64
  %75 = tail call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %1, i64 noundef %74, ptr noundef nonnull @.str.62, i32 noundef %51, i32 noundef %15, ptr noundef nonnull %.str.58..str.59)
  br label %79

76:                                               ; preds = %50
  %77 = sext i32 %2 to i64
  %78 = tail call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %1, i64 noundef %77, ptr noundef nonnull @.str.63, i32 noundef %51, ptr noundef nonnull %.str.58..str.59)
  br label %79

79:                                               ; preds = %52, %55, %58, %61, %64, %67, %70, %73, %76, %50, %19, %22, %25, %28, %31, %34, %37, %40, %43, %18
  %.2 = phi i32 [ %45, %43 ], [ %42, %40 ], [ %39, %37 ], [ %36, %34 ], [ %33, %31 ], [ %30, %28 ], [ %27, %25 ], [ %24, %22 ], [ %21, %19 ], [ 0, %18 ], [ %78, %76 ], [ %75, %73 ], [ %72, %70 ], [ %69, %67 ], [ %66, %64 ], [ %63, %61 ], [ %60, %58 ], [ %57, %55 ], [ %54, %52 ], [ 0, %50 ]
  ret i32 %.2
}

declare noundef i32 @_Z14ImFormatStringPcmPKcz(ptr noundef, i64 noundef, ptr noundef, ...) local_unnamed_addr #2

attributes #0 = { 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 #1 = { 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" }

!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, !12, i64 8}
!10 = !{!"_ZTS10ImPlotTime", !11, i64 0, !12, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTS2tm", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !11, i64 40, !6, i64 48}
!15 = !{!14, !12, i64 4}
!16 = !{!14, !12, i64 8}


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