; LLVM IR from l1mey112/yr11-physics-applied :: sokol (sokol)

; 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.67 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [29 x i8], align 1
@stderr = external global ptr, align 8
@.str.82 = external hidden unnamed_addr constant [3 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: nounwind uwtable
define dso_local void @slog_func(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6) #1 {
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca [512 x i8], align 16
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca [32 x i8], align 16
  %20 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store i32 %2, ptr %10, align 4, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i32 %4, ptr %12, align 4, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  %21 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %22 = load i32, ptr %9, align 4, !tbaa !9
  switch i32 %22, label %26 [
    i32 0, label %23
    i32 1, label %24
    i32 2, label %25
  ]

23:                                               ; preds = %7
  store ptr @.str.67, ptr %15, align 8, !tbaa !5
  br label %27

24:                                               ; preds = %7
  store ptr @.str.68, ptr %15, align 8, !tbaa !5
  br label %27

25:                                               ; preds = %7
  store ptr @.str.69, ptr %15, align 8, !tbaa !5
  br label %27

26:                                               ; preds = %7
  store ptr @.str.70, ptr %15, align 8, !tbaa !5
  br label %27

27:                                               ; preds = %26, %25, %24, %23
  call void @llvm.lifetime.start.p0(i64 512, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %28 = getelementptr inbounds [512 x i8], ptr %16, i64 0, i64 0
  store ptr %28, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %29 = getelementptr inbounds [512 x i8], ptr %16, i64 0, i64 0
  %30 = getelementptr inbounds i8, ptr %29, i64 512
  store ptr %30, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #4
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %44

33:                                               ; preds = %27
  %34 = load ptr, ptr %17, align 8, !tbaa !5
  %35 = load ptr, ptr %18, align 8, !tbaa !5
  %36 = call ptr @_slog_append(ptr noundef @.str.71, ptr noundef %34, ptr noundef %35)
  store ptr %36, ptr %17, align 8, !tbaa !5
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = load ptr, ptr %17, align 8, !tbaa !5
  %39 = load ptr, ptr %18, align 8, !tbaa !5
  %40 = call ptr @_slog_append(ptr noundef %37, ptr noundef %38, ptr noundef %39)
  store ptr %40, ptr %17, align 8, !tbaa !5
  %41 = load ptr, ptr %17, align 8, !tbaa !5
  %42 = load ptr, ptr %18, align 8, !tbaa !5
  %43 = call ptr @_slog_append(ptr noundef @.str.72, ptr noundef %41, ptr noundef %42)
  store ptr %43, ptr %17, align 8, !tbaa !5
  br label %44

44:                                               ; preds = %33, %27
  %45 = load ptr, ptr %17, align 8, !tbaa !5
  %46 = load ptr, ptr %18, align 8, !tbaa !5
  %47 = call ptr @_slog_append(ptr noundef @.str.71, ptr noundef %45, ptr noundef %46)
  store ptr %47, ptr %17, align 8, !tbaa !5
  %48 = load ptr, ptr %15, align 8, !tbaa !5
  %49 = load ptr, ptr %17, align 8, !tbaa !5
  %50 = load ptr, ptr %18, align 8, !tbaa !5
  %51 = call ptr @_slog_append(ptr noundef %48, ptr noundef %49, ptr noundef %50)
  store ptr %51, ptr %17, align 8, !tbaa !5
  %52 = load ptr, ptr %17, align 8, !tbaa !5
  %53 = load ptr, ptr %18, align 8, !tbaa !5
  %54 = call ptr @_slog_append(ptr noundef @.str.72, ptr noundef %52, ptr noundef %53)
  store ptr %54, ptr %17, align 8, !tbaa !5
  %55 = load ptr, ptr %17, align 8, !tbaa !5
  %56 = load ptr, ptr %18, align 8, !tbaa !5
  %57 = call ptr @_slog_append(ptr noundef @.str.73, ptr noundef %55, ptr noundef %56)
  store ptr %57, ptr %17, align 8, !tbaa !5
  %58 = load i32, ptr %10, align 4, !tbaa !9
  %59 = getelementptr inbounds [32 x i8], ptr %19, i64 0, i64 0
  %60 = call ptr @_slog_itoa(i32 noundef %58, ptr noundef %59, i64 noundef 32)
  %61 = load ptr, ptr %17, align 8, !tbaa !5
  %62 = load ptr, ptr %18, align 8, !tbaa !5
  %63 = call ptr @_slog_append(ptr noundef %60, ptr noundef %61, ptr noundef %62)
  store ptr %63, ptr %17, align 8, !tbaa !5
  %64 = load ptr, ptr %17, align 8, !tbaa !5
  %65 = load ptr, ptr %18, align 8, !tbaa !5
  %66 = call ptr @_slog_append(ptr noundef @.str.72, ptr noundef %64, ptr noundef %65)
  store ptr %66, ptr %17, align 8, !tbaa !5
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = icmp ne ptr %67, null
  br i1 %68, label %69, label %89

69:                                               ; preds = %44
  %70 = load ptr, ptr %17, align 8, !tbaa !5
  %71 = load ptr, ptr %18, align 8, !tbaa !5
  %72 = call ptr @_slog_append(ptr noundef @.str.74, ptr noundef %70, ptr noundef %71)
  store ptr %72, ptr %17, align 8, !tbaa !5
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  %74 = load ptr, ptr %17, align 8, !tbaa !5
  %75 = load ptr, ptr %18, align 8, !tbaa !5
  %76 = call ptr @_slog_append(ptr noundef %73, ptr noundef %74, ptr noundef %75)
  store ptr %76, ptr %17, align 8, !tbaa !5
  %77 = load ptr, ptr %17, align 8, !tbaa !5
  %78 = load ptr, ptr %18, align 8, !tbaa !5
  %79 = call ptr @_slog_append(ptr noundef @.str.75, ptr noundef %77, ptr noundef %78)
  store ptr %79, ptr %17, align 8, !tbaa !5
  %80 = load i32, ptr %12, align 4, !tbaa !9
  %81 = getelementptr inbounds [32 x i8], ptr %19, i64 0, i64 0
  %82 = call ptr @_slog_itoa(i32 noundef %80, ptr noundef %81, i64 noundef 32)
  %83 = load ptr, ptr %17, align 8, !tbaa !5
  %84 = load ptr, ptr %18, align 8, !tbaa !5
  %85 = call ptr @_slog_append(ptr noundef %82, ptr noundef %83, ptr noundef %84)
  store ptr %85, ptr %17, align 8, !tbaa !5
  %86 = load ptr, ptr %17, align 8, !tbaa !5
  %87 = load ptr, ptr %18, align 8, !tbaa !5
  %88 = call ptr @_slog_append(ptr noundef @.str.76, ptr noundef %86, ptr noundef %87)
  store ptr %88, ptr %17, align 8, !tbaa !5
  br label %102

89:                                               ; preds = %44
  %90 = load ptr, ptr %17, align 8, !tbaa !5
  %91 = load ptr, ptr %18, align 8, !tbaa !5
  %92 = call ptr @_slog_append(ptr noundef @.str.77, ptr noundef %90, ptr noundef %91)
  store ptr %92, ptr %17, align 8, !tbaa !5
  %93 = load i32, ptr %12, align 4, !tbaa !9
  %94 = getelementptr inbounds [32 x i8], ptr %19, i64 0, i64 0
  %95 = call ptr @_slog_itoa(i32 noundef %93, ptr noundef %94, i64 noundef 32)
  %96 = load ptr, ptr %17, align 8, !tbaa !5
  %97 = load ptr, ptr %18, align 8, !tbaa !5
  %98 = call ptr @_slog_append(ptr noundef %95, ptr noundef %96, ptr noundef %97)
  store ptr %98, ptr %17, align 8, !tbaa !5
  %99 = load ptr, ptr %17, align 8, !tbaa !5
  %100 = load ptr, ptr %18, align 8, !tbaa !5
  %101 = call ptr @_slog_append(ptr noundef @.str.78, ptr noundef %99, ptr noundef %100)
  store ptr %101, ptr %17, align 8, !tbaa !5
  br label %102

102:                                              ; preds = %89, %69
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = icmp ne ptr %103, null
  br i1 %104, label %105, label %113

105:                                              ; preds = %102
  %106 = load ptr, ptr %17, align 8, !tbaa !5
  %107 = load ptr, ptr %18, align 8, !tbaa !5
  %108 = call ptr @_slog_append(ptr noundef @.str.79, ptr noundef %106, ptr noundef %107)
  store ptr %108, ptr %17, align 8, !tbaa !5
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  %110 = load ptr, ptr %17, align 8, !tbaa !5
  %111 = load ptr, ptr %18, align 8, !tbaa !5
  %112 = call ptr @_slog_append(ptr noundef %109, ptr noundef %110, ptr noundef %111)
  store ptr %112, ptr %17, align 8, !tbaa !5
  br label %113

113:                                              ; preds = %105, %102
  %114 = load ptr, ptr %17, align 8, !tbaa !5
  %115 = load ptr, ptr %18, align 8, !tbaa !5
  %116 = call ptr @_slog_append(ptr noundef @.str.80, ptr noundef %114, ptr noundef %115)
  store ptr %116, ptr %17, align 8, !tbaa !5
  %117 = load i32, ptr %9, align 4, !tbaa !9
  %118 = icmp eq i32 0, %117
  br i1 %118, label %119, label %124

119:                                              ; preds = %113
  %120 = load ptr, ptr %17, align 8, !tbaa !5
  %121 = load ptr, ptr %18, align 8, !tbaa !5
  %122 = call ptr @_slog_append(ptr noundef @.str.81, ptr noundef %120, ptr noundef %121)
  store ptr %122, ptr %17, align 8, !tbaa !5
  %123 = load ptr, ptr %17, align 8, !tbaa !5
  br label %124

124:                                              ; preds = %119, %113
  %125 = getelementptr inbounds [512 x i8], ptr %16, i64 0, i64 0
  %126 = load ptr, ptr @stderr, align 8, !tbaa !5
  %127 = call i32 @fputs(ptr noundef %125, ptr noundef %126)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %128 = load i32, ptr %9, align 4, !tbaa !9
  switch i32 %128, label %132 [
    i32 0, label %129
    i32 1, label %130
    i32 2, label %131
  ]

129:                                              ; preds = %124
  store i32 2, ptr %20, align 4, !tbaa !9
  br label %133

130:                                              ; preds = %124
  store i32 3, ptr %20, align 4, !tbaa !9
  br label %133

131:                                              ; preds = %124
  store i32 4, ptr %20, align 4, !tbaa !9
  br label %133

132:                                              ; preds = %124
  store i32 6, ptr %20, align 4, !tbaa !9
  br label %133

133:                                              ; preds = %132, %131, %130, %129
  %134 = load i32, ptr %20, align 4, !tbaa !9
  %135 = getelementptr inbounds [512 x i8], ptr %16, i64 0, i64 0
  call void (i32, ptr, ...) @syslog(i32 noundef %134, ptr noundef @.str.82, ptr noundef %135)
  %136 = load i32, ptr %9, align 4, !tbaa !9
  %137 = icmp eq i32 0, %136
  br i1 %137, label %138, label %139

138:                                              ; preds = %133
  call void @abort() #5
  unreachable

139:                                              ; preds = %133
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 512, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden ptr @_slog_append(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden ptr @_slog_itoa(i32 noundef, ptr noundef, i64 noundef) #1

declare i32 @fputs(ptr noundef, ptr noundef) #2

declare void @syslog(i32 noundef, ptr noundef, ...) #2

; Function Attrs: noreturn nounwind
declare void @abort() #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { "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 = { noreturn nounwind "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 }
attributes #5 = { noreturn 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"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"

@.str.67 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [29 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.82 = external hidden unnamed_addr constant [3 x i8], align 1
@switch.table.slog_func = private unnamed_addr constant [3 x ptr] [ptr @.str.67, ptr @.str.68, ptr @.str.69], align 8

; 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: nounwind uwtable
define dso_local void @slog_func(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, ptr nocapture noundef readnone %6) local_unnamed_addr #1 {
  %8 = alloca [512 x i8], align 16
  %9 = alloca [32 x i8], align 16
  %10 = icmp ult i32 %1, 3
  br i1 %10, label %switch.lookup, label %12

switch.lookup:                                    ; preds = %7
  %11 = zext nneg i32 %1 to i64
  %switch.gep = getelementptr inbounds [3 x ptr], ptr @switch.table.slog_func, i64 0, i64 %11
  %switch.load = load ptr, ptr %switch.gep, align 8
  br label %12

12:                                               ; preds = %7, %switch.lookup
  %.058 = phi ptr [ %switch.load, %switch.lookup ], [ @.str.70, %7 ]
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %8) #5
  %13 = getelementptr inbounds i8, ptr %8, i64 512
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %18, label %14

14:                                               ; preds = %12
  %15 = call ptr @_slog_append(ptr noundef nonnull @.str.71, ptr noundef nonnull %8, ptr noundef nonnull %13)
  %16 = call ptr @_slog_append(ptr noundef nonnull %0, ptr noundef %15, ptr noundef nonnull %13)
  %17 = call ptr @_slog_append(ptr noundef nonnull @.str.72, ptr noundef %16, ptr noundef nonnull %13)
  br label %18

18:                                               ; preds = %14, %12
  %.059 = phi ptr [ %17, %14 ], [ %8, %12 ]
  %19 = call ptr @_slog_append(ptr noundef nonnull @.str.71, ptr noundef %.059, ptr noundef nonnull %13)
  %20 = call ptr @_slog_append(ptr noundef nonnull %.058, ptr noundef %19, ptr noundef nonnull %13)
  %21 = call ptr @_slog_append(ptr noundef nonnull @.str.72, ptr noundef %20, ptr noundef nonnull %13)
  %22 = call ptr @_slog_append(ptr noundef nonnull @.str.73, ptr noundef %21, ptr noundef nonnull %13)
  %23 = call ptr @_slog_itoa(i32 noundef %2, ptr noundef nonnull %9, i64 noundef 32)
  %24 = call ptr @_slog_append(ptr noundef %23, ptr noundef %22, ptr noundef nonnull %13)
  %25 = call ptr @_slog_append(ptr noundef nonnull @.str.72, ptr noundef %24, ptr noundef nonnull %13)
  %.not63 = icmp eq ptr %5, null
  br i1 %.not63, label %30, label %26

26:                                               ; preds = %18
  %27 = call ptr @_slog_append(ptr noundef nonnull @.str.74, ptr noundef %25, ptr noundef nonnull %13)
  %28 = call ptr @_slog_append(ptr noundef nonnull %5, ptr noundef %27, ptr noundef nonnull %13)
  %29 = call ptr @_slog_append(ptr noundef nonnull @.str.75, ptr noundef %28, ptr noundef nonnull %13)
  br label %32

30:                                               ; preds = %18
  %31 = call ptr @_slog_append(ptr noundef nonnull @.str.77, ptr noundef %25, ptr noundef nonnull %13)
  br label %32

32:                                               ; preds = %30, %26
  %.sink70 = phi ptr [ %31, %30 ], [ %29, %26 ]
  %.str.78.sink = phi ptr [ @.str.78, %30 ], [ @.str.76, %26 ]
  %33 = call ptr @_slog_itoa(i32 noundef %4, ptr noundef nonnull %9, i64 noundef 32)
  %34 = call ptr @_slog_append(ptr noundef %33, ptr noundef %.sink70, ptr noundef nonnull %13)
  %35 = call ptr @_slog_append(ptr noundef nonnull %.str.78.sink, ptr noundef %34, ptr noundef nonnull %13)
  %.not64 = icmp eq ptr %3, null
  br i1 %.not64, label %39, label %36

36:                                               ; preds = %32
  %37 = call ptr @_slog_append(ptr noundef nonnull @.str.79, ptr noundef %35, ptr noundef nonnull %13)
  %38 = call ptr @_slog_append(ptr noundef nonnull %3, ptr noundef %37, ptr noundef nonnull %13)
  br label %39

39:                                               ; preds = %36, %32
  %.2 = phi ptr [ %38, %36 ], [ %35, %32 ]
  %40 = call ptr @_slog_append(ptr noundef nonnull @.str.80, ptr noundef %.2, ptr noundef nonnull %13)
  %41 = icmp eq i32 %1, 0
  br i1 %41, label %45, label %42

42:                                               ; preds = %39
  %43 = load ptr, ptr @stderr, align 8, !tbaa !5
  %44 = call i32 @fputs(ptr noundef nonnull %8, ptr noundef %43) #6
  %switch.selectcmp = icmp eq i32 %1, 1
  %switch.select = select i1 %switch.selectcmp, i32 3, i32 6
  %switch.selectcmp67 = icmp eq i32 %1, 2
  %switch.select68 = select i1 %switch.selectcmp67, i32 4, i32 %switch.select
  call void (i32, ptr, ...) @syslog(i32 noundef %switch.select68, ptr noundef nonnull @.str.82, ptr noundef nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %8) #5
  ret void

45:                                               ; preds = %39
  %46 = call ptr @_slog_append(ptr noundef nonnull @.str.81, ptr noundef %40, ptr noundef nonnull %13)
  %47 = load ptr, ptr @stderr, align 8, !tbaa !5
  %48 = call i32 @fputs(ptr noundef nonnull %8, ptr noundef %47) #6
  call void (i32, ptr, ...) @syslog(i32 noundef 2, ptr noundef nonnull @.str.82, ptr noundef nonnull %8) #5
  call void @abort() #7
  unreachable
}

; Function Attrs: nounwind uwtable
declare hidden ptr @_slog_append(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden ptr @_slog_itoa(i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @fputs(ptr nocapture noundef readonly, ptr nocapture noundef) local_unnamed_addr #2

declare void @syslog(i32 noundef, ptr noundef, ...) local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #4

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass