; LLVM IR from BrunoLevy/learn-fpga :: LiteX/software/Doom/mc1-doom/src (st_stuff)

; 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.memblock_s = type { i32, i32, ptr, i32, i32, ptr, ptr, i32 }

@sbar = external hidden global ptr, align 8
@faceback = external hidden global ptr, align 8
@tallnum = external hidden global [10 x ptr], align 16
@shortnum = external hidden global [10 x ptr], align 16
@tallpercent = external hidden global ptr, align 8
@keys = external hidden global [6 x ptr], align 16
@armsbg = external hidden global ptr, align 8
@arms = external hidden global [6 x [2 x ptr]], align 16
@faces = external hidden global [42 x ptr], align 16
@.str.30 = external hidden unnamed_addr constant [109 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 @ST_unloadGraphics() #1 {
  %1 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %2

2:                                                ; preds = %34, %0
  %3 = load i32, ptr %1, align 4, !tbaa !5
  %4 = icmp slt i32 %3, 10
  br i1 %4, label %5, label %37

5:                                                ; preds = %2
  %6 = load i32, ptr %1, align 4, !tbaa !5
  %7 = sext i32 %6 to i64
  %8 = getelementptr inbounds [10 x ptr], ptr @tallnum, i64 0, i64 %7
  %9 = load ptr, ptr %8, align 8, !tbaa !9
  %10 = getelementptr inbounds i8, ptr %9, i64 -48
  %11 = getelementptr inbounds %struct.memblock_s, ptr %10, i32 0, i32 4
  %12 = load i32, ptr %11, align 4, !tbaa !11
  %13 = icmp ne i32 %12, 1919505
  br i1 %13, label %14, label %15

14:                                               ; preds = %5
  call void (ptr, ...) @I_Error(ptr noundef @.str.30, i32 noundef 1198) #5
  unreachable

15:                                               ; preds = %5
  %16 = load i32, ptr %1, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds [10 x ptr], ptr @tallnum, i64 0, i64 %17
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  call void @Z_ChangeTag2(ptr noundef %19, i32 noundef 101)
  %20 = load i32, ptr %1, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [10 x ptr], ptr @shortnum, i64 0, i64 %21
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = getelementptr inbounds i8, ptr %23, i64 -48
  %25 = getelementptr inbounds %struct.memblock_s, ptr %24, i32 0, i32 4
  %26 = load i32, ptr %25, align 4, !tbaa !11
  %27 = icmp ne i32 %26, 1919505
  br i1 %27, label %28, label %29

28:                                               ; preds = %15
  call void (ptr, ...) @I_Error(ptr noundef @.str.30, i32 noundef 1199) #5
  unreachable

29:                                               ; preds = %15
  %30 = load i32, ptr %1, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [10 x ptr], ptr @shortnum, i64 0, i64 %31
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  call void @Z_ChangeTag2(ptr noundef %33, i32 noundef 101)
  br label %34

34:                                               ; preds = %29
  %35 = load i32, ptr %1, align 4, !tbaa !5
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %1, align 4, !tbaa !5
  br label %2, !llvm.loop !13

37:                                               ; preds = %2
  %38 = load ptr, ptr @tallpercent, align 8, !tbaa !9
  %39 = getelementptr inbounds i8, ptr %38, i64 -48
  %40 = getelementptr inbounds %struct.memblock_s, ptr %39, i32 0, i32 4
  %41 = load i32, ptr %40, align 4, !tbaa !11
  %42 = icmp ne i32 %41, 1919505
  br i1 %42, label %43, label %44

43:                                               ; preds = %37
  call void (ptr, ...) @I_Error(ptr noundef @.str.30, i32 noundef 1202) #5
  unreachable

44:                                               ; preds = %37
  %45 = load ptr, ptr @tallpercent, align 8, !tbaa !9
  call void @Z_ChangeTag2(ptr noundef %45, i32 noundef 101)
  %46 = load ptr, ptr @armsbg, align 8, !tbaa !9
  %47 = getelementptr inbounds i8, ptr %46, i64 -48
  %48 = getelementptr inbounds %struct.memblock_s, ptr %47, i32 0, i32 4
  %49 = load i32, ptr %48, align 4, !tbaa !11
  %50 = icmp ne i32 %49, 1919505
  br i1 %50, label %51, label %52

51:                                               ; preds = %44
  call void (ptr, ...) @I_Error(ptr noundef @.str.30, i32 noundef 1205) #5
  unreachable

52:                                               ; preds = %44
  %53 = load ptr, ptr @armsbg, align 8, !tbaa !9
  call void @Z_ChangeTag2(ptr noundef %53, i32 noundef 101)
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %74, %52
  %55 = load i32, ptr %1, align 4, !tbaa !5
  %56 = icmp slt i32 %55, 6
  br i1 %56, label %57, label %77

57:                                               ; preds = %54
  %58 = load i32, ptr %1, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [6 x [2 x ptr]], ptr @arms, i64 0, i64 %59
  %61 = getelementptr inbounds [2 x ptr], ptr %60, i64 0, i64 0
  %62 = load ptr, ptr %61, align 16, !tbaa !9
  %63 = getelementptr inbounds i8, ptr %62, i64 -48
  %64 = getelementptr inbounds %struct.memblock_s, ptr %63, i32 0, i32 4
  %65 = load i32, ptr %64, align 4, !tbaa !11
  %66 = icmp ne i32 %65, 1919505
  br i1 %66, label %67, label %68

67:                                               ; preds = %57
  call void (ptr, ...) @I_Error(ptr noundef @.str.30, i32 noundef 1209) #5
  unreachable

68:                                               ; preds = %57
  %69 = load i32, ptr %1, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [6 x [2 x ptr]], ptr @arms, i64 0, i64 %70
  %72 = getelementptr inbounds [2 x ptr], ptr %71, i64 0, i64 0
  %73 = load ptr, ptr %72, align 16, !tbaa !9
  call void @Z_ChangeTag2(ptr noundef %73, i32 noundef 101)
  br label %74

74:                                               ; preds = %68
  %75 = load i32, ptr %1, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %1, align 4, !tbaa !5
  br label %54, !llvm.loop !15

77:                                               ; preds = %54
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %96, %77
  %79 = load i32, ptr %1, align 4, !tbaa !5
  %80 = icmp slt i32 %79, 6
  br i1 %80, label %81, label %99

81:                                               ; preds = %78
  %82 = load i32, ptr %1, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [6 x ptr], ptr @keys, i64 0, i64 %83
  %85 = load ptr, ptr %84, align 8, !tbaa !9
  %86 = getelementptr inbounds i8, ptr %85, i64 -48
  %87 = getelementptr inbounds %struct.memblock_s, ptr %86, i32 0, i32 4
  %88 = load i32, ptr %87, align 4, !tbaa !11
  %89 = icmp ne i32 %88, 1919505
  br i1 %89, label %90, label %91

90:                                               ; preds = %81
  call void (ptr, ...) @I_Error(ptr noundef @.str.30, i32 noundef 1213) #5
  unreachable

91:                                               ; preds = %81
  %92 = load i32, ptr %1, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [6 x ptr], ptr @keys, i64 0, i64 %93
  %95 = load ptr, ptr %94, align 8, !tbaa !9
  call void @Z_ChangeTag2(ptr noundef %95, i32 noundef 101)
  br label %96

96:                                               ; preds = %91
  %97 = load i32, ptr %1, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %1, align 4, !tbaa !5
  br label %78, !llvm.loop !16

99:                                               ; preds = %78
  %100 = load ptr, ptr @sbar, align 8, !tbaa !9
  %101 = getelementptr inbounds i8, ptr %100, i64 -48
  %102 = getelementptr inbounds %struct.memblock_s, ptr %101, i32 0, i32 4
  %103 = load i32, ptr %102, align 4, !tbaa !11
  %104 = icmp ne i32 %103, 1919505
  br i1 %104, label %105, label %106

105:                                              ; preds = %99
  call void (ptr, ...) @I_Error(ptr noundef @.str.30, i32 noundef 1215) #5
  unreachable

106:                                              ; preds = %99
  %107 = load ptr, ptr @sbar, align 8, !tbaa !9
  call void @Z_ChangeTag2(ptr noundef %107, i32 noundef 101)
  %108 = load ptr, ptr @faceback, align 8, !tbaa !9
  %109 = getelementptr inbounds i8, ptr %108, i64 -48
  %110 = getelementptr inbounds %struct.memblock_s, ptr %109, i32 0, i32 4
  %111 = load i32, ptr %110, align 4, !tbaa !11
  %112 = icmp ne i32 %111, 1919505
  br i1 %112, label %113, label %114

113:                                              ; preds = %106
  call void (ptr, ...) @I_Error(ptr noundef @.str.30, i32 noundef 1216) #5
  unreachable

114:                                              ; preds = %106
  %115 = load ptr, ptr @faceback, align 8, !tbaa !9
  call void @Z_ChangeTag2(ptr noundef %115, i32 noundef 101)
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %134, %114
  %117 = load i32, ptr %1, align 4, !tbaa !5
  %118 = icmp slt i32 %117, 42
  br i1 %118, label %119, label %137

119:                                              ; preds = %116
  %120 = load i32, ptr %1, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [42 x ptr], ptr @faces, i64 0, i64 %121
  %123 = load ptr, ptr %122, align 8, !tbaa !9
  %124 = getelementptr inbounds i8, ptr %123, i64 -48
  %125 = getelementptr inbounds %struct.memblock_s, ptr %124, i32 0, i32 4
  %126 = load i32, ptr %125, align 4, !tbaa !11
  %127 = icmp ne i32 %126, 1919505
  br i1 %127, label %128, label %129

128:                                              ; preds = %119
  call void (ptr, ...) @I_Error(ptr noundef @.str.30, i32 noundef 1219) #5
  unreachable

129:                                              ; preds = %119
  %130 = load i32, ptr %1, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [42 x ptr], ptr @faces, i64 0, i64 %131
  %133 = load ptr, ptr %132, align 8, !tbaa !9
  call void @Z_ChangeTag2(ptr noundef %133, i32 noundef 101)
  br label %134

134:                                              ; preds = %129
  %135 = load i32, ptr %1, align 4, !tbaa !5
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %1, align 4, !tbaa !5
  br label %116, !llvm.loop !17

137:                                              ; preds = %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  ret void
}

; Function Attrs: noreturn
declare void @I_Error(ptr noundef, ...) #2

declare void @Z_ChangeTag2(ptr noundef, i32 noundef) #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 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 }
attributes #5 = { noreturn }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 20}
!12 = !{!"memblock_s", !6, i64 0, !6, i64 4, !10, i64 8, !6, i64 16, !6, i64 20, !10, i64 24, !10, i64 32, !6, i64 40}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}


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

@sbar = external hidden local_unnamed_addr global ptr, align 8
@faceback = external hidden local_unnamed_addr global ptr, align 8
@tallnum = external hidden local_unnamed_addr global [10 x ptr], align 16
@shortnum = external hidden local_unnamed_addr global [10 x ptr], align 16
@tallpercent = external hidden local_unnamed_addr global ptr, align 8
@keys = external hidden local_unnamed_addr global [6 x ptr], align 16
@armsbg = external hidden local_unnamed_addr global ptr, align 8
@arms = external hidden local_unnamed_addr global [6 x [2 x ptr]], align 16
@faces = external hidden local_unnamed_addr global [42 x ptr], align 16
@.str.30 = external hidden unnamed_addr constant [109 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @ST_unloadGraphics() local_unnamed_addr #0 {
  %1 = load ptr, ptr @tallnum, align 16, !tbaa !5
  %2 = getelementptr inbounds i8, ptr %1, i64 -28
  %3 = load i32, ptr %2, align 4, !tbaa !9
  %.not24 = icmp eq i32 %3, 1919505
  br i1 %.not24, label %5, label %4

4:                                                ; preds = %74, %66, %58, %50, %42, %34, %26, %18, %10, %0
  tail call void (ptr, ...) @I_Error(ptr noundef nonnull @.str.30, i32 noundef 1198) #3
  unreachable

5:                                                ; preds = %0
  tail call void @Z_ChangeTag2(ptr noundef nonnull %1, i32 noundef 101) #4
  %6 = load ptr, ptr @shortnum, align 16, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %6, i64 -28
  %8 = load i32, ptr %7, align 4, !tbaa !9
  %.not25 = icmp eq i32 %8, 1919505
  br i1 %.not25, label %10, label %9

9:                                                ; preds = %78, %70, %62, %54, %46, %38, %30, %22, %14, %5
  tail call void (ptr, ...) @I_Error(ptr noundef nonnull @.str.30, i32 noundef 1199) #3
  unreachable

10:                                               ; preds = %5
  tail call void @Z_ChangeTag2(ptr noundef nonnull %6, i32 noundef 101) #4
  %11 = load ptr, ptr getelementptr inbounds (i8, ptr @tallnum, i64 8), align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %11, i64 -28
  %13 = load i32, ptr %12, align 4, !tbaa !9
  %.not24.1 = icmp eq i32 %13, 1919505
  br i1 %.not24.1, label %14, label %4

14:                                               ; preds = %10
  tail call void @Z_ChangeTag2(ptr noundef nonnull %11, i32 noundef 101) #4
  %15 = load ptr, ptr getelementptr inbounds (i8, ptr @shortnum, i64 8), align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %15, i64 -28
  %17 = load i32, ptr %16, align 4, !tbaa !9
  %.not25.1 = icmp eq i32 %17, 1919505
  br i1 %.not25.1, label %18, label %9

18:                                               ; preds = %14
  tail call void @Z_ChangeTag2(ptr noundef nonnull %15, i32 noundef 101) #4
  %19 = load ptr, ptr getelementptr inbounds (i8, ptr @tallnum, i64 16), align 16, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %19, i64 -28
  %21 = load i32, ptr %20, align 4, !tbaa !9
  %.not24.2 = icmp eq i32 %21, 1919505
  br i1 %.not24.2, label %22, label %4

22:                                               ; preds = %18
  tail call void @Z_ChangeTag2(ptr noundef nonnull %19, i32 noundef 101) #4
  %23 = load ptr, ptr getelementptr inbounds (i8, ptr @shortnum, i64 16), align 16, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %23, i64 -28
  %25 = load i32, ptr %24, align 4, !tbaa !9
  %.not25.2 = icmp eq i32 %25, 1919505
  br i1 %.not25.2, label %26, label %9

26:                                               ; preds = %22
  tail call void @Z_ChangeTag2(ptr noundef nonnull %23, i32 noundef 101) #4
  %27 = load ptr, ptr getelementptr inbounds (i8, ptr @tallnum, i64 24), align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i64 -28
  %29 = load i32, ptr %28, align 4, !tbaa !9
  %.not24.3 = icmp eq i32 %29, 1919505
  br i1 %.not24.3, label %30, label %4

30:                                               ; preds = %26
  tail call void @Z_ChangeTag2(ptr noundef nonnull %27, i32 noundef 101) #4
  %31 = load ptr, ptr getelementptr inbounds (i8, ptr @shortnum, i64 24), align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %31, i64 -28
  %33 = load i32, ptr %32, align 4, !tbaa !9
  %.not25.3 = icmp eq i32 %33, 1919505
  br i1 %.not25.3, label %34, label %9

34:                                               ; preds = %30
  tail call void @Z_ChangeTag2(ptr noundef nonnull %31, i32 noundef 101) #4
  %35 = load ptr, ptr getelementptr inbounds (i8, ptr @tallnum, i64 32), align 16, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %35, i64 -28
  %37 = load i32, ptr %36, align 4, !tbaa !9
  %.not24.4 = icmp eq i32 %37, 1919505
  br i1 %.not24.4, label %38, label %4

38:                                               ; preds = %34
  tail call void @Z_ChangeTag2(ptr noundef nonnull %35, i32 noundef 101) #4
  %39 = load ptr, ptr getelementptr inbounds (i8, ptr @shortnum, i64 32), align 16, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %39, i64 -28
  %41 = load i32, ptr %40, align 4, !tbaa !9
  %.not25.4 = icmp eq i32 %41, 1919505
  br i1 %.not25.4, label %42, label %9

42:                                               ; preds = %38
  tail call void @Z_ChangeTag2(ptr noundef nonnull %39, i32 noundef 101) #4
  %43 = load ptr, ptr getelementptr inbounds (i8, ptr @tallnum, i64 40), align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %43, i64 -28
  %45 = load i32, ptr %44, align 4, !tbaa !9
  %.not24.5 = icmp eq i32 %45, 1919505
  br i1 %.not24.5, label %46, label %4

46:                                               ; preds = %42
  tail call void @Z_ChangeTag2(ptr noundef nonnull %43, i32 noundef 101) #4
  %47 = load ptr, ptr getelementptr inbounds (i8, ptr @shortnum, i64 40), align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %47, i64 -28
  %49 = load i32, ptr %48, align 4, !tbaa !9
  %.not25.5 = icmp eq i32 %49, 1919505
  br i1 %.not25.5, label %50, label %9

50:                                               ; preds = %46
  tail call void @Z_ChangeTag2(ptr noundef nonnull %47, i32 noundef 101) #4
  %51 = load ptr, ptr getelementptr inbounds (i8, ptr @tallnum, i64 48), align 16, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %51, i64 -28
  %53 = load i32, ptr %52, align 4, !tbaa !9
  %.not24.6 = icmp eq i32 %53, 1919505
  br i1 %.not24.6, label %54, label %4

54:                                               ; preds = %50
  tail call void @Z_ChangeTag2(ptr noundef nonnull %51, i32 noundef 101) #4
  %55 = load ptr, ptr getelementptr inbounds (i8, ptr @shortnum, i64 48), align 16, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %55, i64 -28
  %57 = load i32, ptr %56, align 4, !tbaa !9
  %.not25.6 = icmp eq i32 %57, 1919505
  br i1 %.not25.6, label %58, label %9

58:                                               ; preds = %54
  tail call void @Z_ChangeTag2(ptr noundef nonnull %55, i32 noundef 101) #4
  %59 = load ptr, ptr getelementptr inbounds (i8, ptr @tallnum, i64 56), align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %59, i64 -28
  %61 = load i32, ptr %60, align 4, !tbaa !9
  %.not24.7 = icmp eq i32 %61, 1919505
  br i1 %.not24.7, label %62, label %4

62:                                               ; preds = %58
  tail call void @Z_ChangeTag2(ptr noundef nonnull %59, i32 noundef 101) #4
  %63 = load ptr, ptr getelementptr inbounds (i8, ptr @shortnum, i64 56), align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %63, i64 -28
  %65 = load i32, ptr %64, align 4, !tbaa !9
  %.not25.7 = icmp eq i32 %65, 1919505
  br i1 %.not25.7, label %66, label %9

66:                                               ; preds = %62
  tail call void @Z_ChangeTag2(ptr noundef nonnull %63, i32 noundef 101) #4
  %67 = load ptr, ptr getelementptr inbounds (i8, ptr @tallnum, i64 64), align 16, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %67, i64 -28
  %69 = load i32, ptr %68, align 4, !tbaa !9
  %.not24.8 = icmp eq i32 %69, 1919505
  br i1 %.not24.8, label %70, label %4

70:                                               ; preds = %66
  tail call void @Z_ChangeTag2(ptr noundef nonnull %67, i32 noundef 101) #4
  %71 = load ptr, ptr getelementptr inbounds (i8, ptr @shortnum, i64 64), align 16, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %71, i64 -28
  %73 = load i32, ptr %72, align 4, !tbaa !9
  %.not25.8 = icmp eq i32 %73, 1919505
  br i1 %.not25.8, label %74, label %9

74:                                               ; preds = %70
  tail call void @Z_ChangeTag2(ptr noundef nonnull %71, i32 noundef 101) #4
  %75 = load ptr, ptr getelementptr inbounds (i8, ptr @tallnum, i64 72), align 8, !tbaa !5
  %76 = getelementptr inbounds i8, ptr %75, i64 -28
  %77 = load i32, ptr %76, align 4, !tbaa !9
  %.not24.9 = icmp eq i32 %77, 1919505
  br i1 %.not24.9, label %78, label %4

78:                                               ; preds = %74
  tail call void @Z_ChangeTag2(ptr noundef nonnull %75, i32 noundef 101) #4
  %79 = load ptr, ptr getelementptr inbounds (i8, ptr @shortnum, i64 72), align 8, !tbaa !5
  %80 = getelementptr inbounds i8, ptr %79, i64 -28
  %81 = load i32, ptr %80, align 4, !tbaa !9
  %.not25.9 = icmp eq i32 %81, 1919505
  br i1 %.not25.9, label %82, label %9

82:                                               ; preds = %78
  tail call void @Z_ChangeTag2(ptr noundef nonnull %79, i32 noundef 101) #4
  %83 = load ptr, ptr @tallpercent, align 8, !tbaa !5
  %84 = getelementptr inbounds i8, ptr %83, i64 -28
  %85 = load i32, ptr %84, align 4, !tbaa !9
  %.not = icmp eq i32 %85, 1919505
  br i1 %.not, label %87, label %86

86:                                               ; preds = %82
  tail call void (ptr, ...) @I_Error(ptr noundef nonnull @.str.30, i32 noundef 1202) #3
  unreachable

87:                                               ; preds = %82
  tail call void @Z_ChangeTag2(ptr noundef nonnull %83, i32 noundef 101) #4
  %88 = load ptr, ptr @armsbg, align 8, !tbaa !5
  %89 = getelementptr inbounds i8, ptr %88, i64 -28
  %90 = load i32, ptr %89, align 4, !tbaa !9
  %.not18 = icmp eq i32 %90, 1919505
  br i1 %.not18, label %92, label %91

91:                                               ; preds = %87
  tail call void (ptr, ...) @I_Error(ptr noundef nonnull @.str.30, i32 noundef 1205) #3
  unreachable

92:                                               ; preds = %87
  tail call void @Z_ChangeTag2(ptr noundef nonnull %88, i32 noundef 101) #4
  %93 = load ptr, ptr @arms, align 16, !tbaa !5
  %94 = getelementptr inbounds i8, ptr %93, i64 -28
  %95 = load i32, ptr %94, align 4, !tbaa !9
  %.not23 = icmp eq i32 %95, 1919505
  br i1 %.not23, label %97, label %96

96:                                               ; preds = %113, %109, %105, %101, %97, %92
  tail call void (ptr, ...) @I_Error(ptr noundef nonnull @.str.30, i32 noundef 1209) #3
  unreachable

97:                                               ; preds = %92
  tail call void @Z_ChangeTag2(ptr noundef nonnull %93, i32 noundef 101) #4
  %98 = load ptr, ptr getelementptr inbounds (i8, ptr @arms, i64 16), align 16, !tbaa !5
  %99 = getelementptr inbounds i8, ptr %98, i64 -28
  %100 = load i32, ptr %99, align 4, !tbaa !9
  %.not23.1 = icmp eq i32 %100, 1919505
  br i1 %.not23.1, label %101, label %96

101:                                              ; preds = %97
  tail call void @Z_ChangeTag2(ptr noundef nonnull %98, i32 noundef 101) #4
  %102 = load ptr, ptr getelementptr inbounds (i8, ptr @arms, i64 32), align 16, !tbaa !5
  %103 = getelementptr inbounds i8, ptr %102, i64 -28
  %104 = load i32, ptr %103, align 4, !tbaa !9
  %.not23.2 = icmp eq i32 %104, 1919505
  br i1 %.not23.2, label %105, label %96

105:                                              ; preds = %101
  tail call void @Z_ChangeTag2(ptr noundef nonnull %102, i32 noundef 101) #4
  %106 = load ptr, ptr getelementptr inbounds (i8, ptr @arms, i64 48), align 16, !tbaa !5
  %107 = getelementptr inbounds i8, ptr %106, i64 -28
  %108 = load i32, ptr %107, align 4, !tbaa !9
  %.not23.3 = icmp eq i32 %108, 1919505
  br i1 %.not23.3, label %109, label %96

109:                                              ; preds = %105
  tail call void @Z_ChangeTag2(ptr noundef nonnull %106, i32 noundef 101) #4
  %110 = load ptr, ptr getelementptr inbounds (i8, ptr @arms, i64 64), align 16, !tbaa !5
  %111 = getelementptr inbounds i8, ptr %110, i64 -28
  %112 = load i32, ptr %111, align 4, !tbaa !9
  %.not23.4 = icmp eq i32 %112, 1919505
  br i1 %.not23.4, label %113, label %96

113:                                              ; preds = %109
  tail call void @Z_ChangeTag2(ptr noundef nonnull %110, i32 noundef 101) #4
  %114 = load ptr, ptr getelementptr inbounds (i8, ptr @arms, i64 80), align 16, !tbaa !5
  %115 = getelementptr inbounds i8, ptr %114, i64 -28
  %116 = load i32, ptr %115, align 4, !tbaa !9
  %.not23.5 = icmp eq i32 %116, 1919505
  br i1 %.not23.5, label %.preheader.preheader, label %96

.preheader.preheader:                             ; preds = %113
  tail call void @Z_ChangeTag2(ptr noundef nonnull %114, i32 noundef 101) #4
  %117 = load ptr, ptr @keys, align 16, !tbaa !5
  %118 = getelementptr inbounds i8, ptr %117, i64 -28
  %119 = load i32, ptr %118, align 4, !tbaa !9
  %.not22 = icmp eq i32 %119, 1919505
  br i1 %.not22, label %.preheader.1, label %120

120:                                              ; preds = %.preheader.5, %.preheader.4, %.preheader.3, %.preheader.2, %.preheader.1, %.preheader.preheader
  tail call void (ptr, ...) @I_Error(ptr noundef nonnull @.str.30, i32 noundef 1213) #3
  unreachable

.preheader.1:                                     ; preds = %.preheader.preheader
  tail call void @Z_ChangeTag2(ptr noundef nonnull %117, i32 noundef 101) #4
  %121 = load ptr, ptr getelementptr inbounds (i8, ptr @keys, i64 8), align 8, !tbaa !5
  %122 = getelementptr inbounds i8, ptr %121, i64 -28
  %123 = load i32, ptr %122, align 4, !tbaa !9
  %.not22.1 = icmp eq i32 %123, 1919505
  br i1 %.not22.1, label %.preheader.2, label %120

.preheader.2:                                     ; preds = %.preheader.1
  tail call void @Z_ChangeTag2(ptr noundef nonnull %121, i32 noundef 101) #4
  %124 = load ptr, ptr getelementptr inbounds (i8, ptr @keys, i64 16), align 16, !tbaa !5
  %125 = getelementptr inbounds i8, ptr %124, i64 -28
  %126 = load i32, ptr %125, align 4, !tbaa !9
  %.not22.2 = icmp eq i32 %126, 1919505
  br i1 %.not22.2, label %.preheader.3, label %120

.preheader.3:                                     ; preds = %.preheader.2
  tail call void @Z_ChangeTag2(ptr noundef nonnull %124, i32 noundef 101) #4
  %127 = load ptr, ptr getelementptr inbounds (i8, ptr @keys, i64 24), align 8, !tbaa !5
  %128 = getelementptr inbounds i8, ptr %127, i64 -28
  %129 = load i32, ptr %128, align 4, !tbaa !9
  %.not22.3 = icmp eq i32 %129, 1919505
  br i1 %.not22.3, label %.preheader.4, label %120

.preheader.4:                                     ; preds = %.preheader.3
  tail call void @Z_ChangeTag2(ptr noundef nonnull %127, i32 noundef 101) #4
  %130 = load ptr, ptr getelementptr inbounds (i8, ptr @keys, i64 32), align 16, !tbaa !5
  %131 = getelementptr inbounds i8, ptr %130, i64 -28
  %132 = load i32, ptr %131, align 4, !tbaa !9
  %.not22.4 = icmp eq i32 %132, 1919505
  br i1 %.not22.4, label %.preheader.5, label %120

.preheader.5:                                     ; preds = %.preheader.4
  tail call void @Z_ChangeTag2(ptr noundef nonnull %130, i32 noundef 101) #4
  %133 = load ptr, ptr getelementptr inbounds (i8, ptr @keys, i64 40), align 8, !tbaa !5
  %134 = getelementptr inbounds i8, ptr %133, i64 -28
  %135 = load i32, ptr %134, align 4, !tbaa !9
  %.not22.5 = icmp eq i32 %135, 1919505
  br i1 %.not22.5, label %136, label %120

136:                                              ; preds = %.preheader.5
  tail call void @Z_ChangeTag2(ptr noundef nonnull %133, i32 noundef 101) #4
  %137 = load ptr, ptr @sbar, align 8, !tbaa !5
  %138 = getelementptr inbounds i8, ptr %137, i64 -28
  %139 = load i32, ptr %138, align 4, !tbaa !9
  %.not19 = icmp eq i32 %139, 1919505
  br i1 %.not19, label %141, label %140

140:                                              ; preds = %136
  tail call void (ptr, ...) @I_Error(ptr noundef nonnull @.str.30, i32 noundef 1215) #3
  unreachable

141:                                              ; preds = %136
  tail call void @Z_ChangeTag2(ptr noundef nonnull %137, i32 noundef 101) #4
  %142 = load ptr, ptr @faceback, align 8, !tbaa !5
  %143 = getelementptr inbounds i8, ptr %142, i64 -28
  %144 = load i32, ptr %143, align 4, !tbaa !9
  %.not20 = icmp eq i32 %144, 1919505
  br i1 %.not20, label %146, label %145

145:                                              ; preds = %141
  tail call void (ptr, ...) @I_Error(ptr noundef nonnull @.str.30, i32 noundef 1216) #3
  unreachable

146:                                              ; preds = %141
  tail call void @Z_ChangeTag2(ptr noundef nonnull %142, i32 noundef 101) #4
  br label %147

147:                                              ; preds = %146, %153
  %indvars.iv = phi i64 [ 0, %146 ], [ %indvars.iv.next, %153 ]
  %148 = getelementptr inbounds [42 x ptr], ptr @faces, i64 0, i64 %indvars.iv
  %149 = load ptr, ptr %148, align 8, !tbaa !5
  %150 = getelementptr inbounds i8, ptr %149, i64 -28
  %151 = load i32, ptr %150, align 4, !tbaa !9
  %.not21 = icmp eq i32 %151, 1919505
  br i1 %.not21, label %153, label %152

152:                                              ; preds = %147
  tail call void (ptr, ...) @I_Error(ptr noundef nonnull @.str.30, i32 noundef 1219) #3
  unreachable

153:                                              ; preds = %147
  tail call void @Z_ChangeTag2(ptr noundef nonnull %149, i32 noundef 101) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 42
  br i1 %exitcond.not, label %154, label %147, !llvm.loop !12

154:                                              ; preds = %153
  ret void
}

; Function Attrs: noreturn
declare void @I_Error(ptr noundef, ...) local_unnamed_addr #1

declare void @Z_ChangeTag2(ptr noundef, i32 noundef) local_unnamed_addr #2

attributes #0 = { 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 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 }
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/C++ TBAA"}
!9 = !{!10, !11, i64 20}
!10 = !{!"memblock_s", !11, i64 0, !11, i64 4, !6, i64 8, !11, i64 16, !11, i64 20, !6, i64 24, !6, i64 32, !11, i64 40}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass,TailCallElimPass