; LLVM IR from marcobambini/gravity :: src/compiler (gravity_ircode)

; 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.ircode_t = type { ptr, %struct.uint32_r, %struct.uint32_r, %struct.uint32_r, i32, i32, i32, i16, i8, [256 x i8], [256 x i8], %struct.uint32_r, %struct.context_r }
%struct.uint32_r = type { i64, i64, ptr }
%struct.context_r = type { i64, i64, ptr }
%struct.code_r = type { i64, i64, ptr }
%struct.inst_t = type { i32, i32, i32, i32, i32, %union.anon, i32 }
%union.anon = type { double }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [18 x i8], align 1
@__PRETTY_FUNCTION__.ircode_dump = external hidden unnamed_addr constant [25 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
declare dso_local i32 @ircode_count(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @opcode_numop(i32 noundef) #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @ircode_dump(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %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
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %15, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.ircode_t, ptr %16, i32 0, i32 0
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  store ptr %18, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = call i32 @ircode_count(ptr noundef %19)
  store i32 %20, ptr %5, align 4, !tbaa !16
  %21 = load i32, ptr %5, align 4, !tbaa !16
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %23, label %25

23:                                               ; preds = %1
  %24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store i32 1, ptr %6, align 4
  br label %170

25:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !16
  br label %26

26:                                               ; preds = %166, %25
  %27 = load i32, ptr %7, align 4, !tbaa !16
  %28 = load i32, ptr %5, align 4, !tbaa !16
  %29 = icmp ult i32 %27, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %26
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %169

31:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.code_r, ptr %32, i32 0, i32 2
  %34 = load ptr, ptr %33, align 8, !tbaa !17
  %35 = load i32, ptr %7, align 4, !tbaa !16
  %36 = zext i32 %35 to i64
  %37 = getelementptr inbounds ptr, ptr %34, i64 %36
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  store ptr %38, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.inst_t, ptr %39, i32 0, i32 0
  %41 = load i32, ptr %40, align 8, !tbaa !18
  store i32 %41, ptr %10, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.inst_t, ptr %42, i32 0, i32 2
  %44 = load i32, ptr %43, align 8, !tbaa !20
  store i32 %44, ptr %11, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.inst_t, ptr %45, i32 0, i32 3
  %47 = load i32, ptr %46, align 4, !tbaa !21
  store i32 %47, ptr %12, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.inst_t, ptr %48, i32 0, i32 4
  %50 = load i32, ptr %49, align 8, !tbaa !22
  store i32 %50, ptr %13, align 4, !tbaa !16
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.inst_t, ptr %51, i32 0, i32 1
  %53 = load i32, ptr %52, align 4, !tbaa !23
  %54 = icmp eq i32 %53, 4
  br i1 %54, label %55, label %56

55:                                               ; preds = %31
  store i32 4, ptr %6, align 4
  br label %163

56:                                               ; preds = %31
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.inst_t, ptr %57, i32 0, i32 1
  %59 = load i32, ptr %58, align 4, !tbaa !23
  %60 = icmp eq i32 %59, 7
  br i1 %60, label %61, label %62

61:                                               ; preds = %56
  store i32 4, ptr %6, align 4
  br label %163

62:                                               ; preds = %56
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.inst_t, ptr %63, i32 0, i32 1
  %65 = load i32, ptr %64, align 4, !tbaa !23
  %66 = icmp eq i32 %65, 3
  br i1 %66, label %67, label %70

67:                                               ; preds = %62
  %68 = load i32, ptr %11, align 4, !tbaa !16
  %69 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %68)
  store i32 4, ptr %6, align 4
  br label %163

70:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #4
  %71 = load i32, ptr %10, align 4, !tbaa !16
  %72 = call zeroext i8 @opcode_numop(i32 noundef %71)
  store i8 %72, ptr %14, align 1, !tbaa !24
  %73 = load i32, ptr %10, align 4, !tbaa !16
  %74 = icmp eq i32 %73, 48
  br i1 %74, label %75, label %79

75:                                               ; preds = %70
  %76 = load i32, ptr %12, align 4, !tbaa !16
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %78, label %79

78:                                               ; preds = %75
  store i8 2, ptr %14, align 1, !tbaa !24
  br label %79

79:                                               ; preds = %78, %75, %70
  %80 = load i8, ptr %14, align 1, !tbaa !24
  %81 = zext i8 %80 to i32
  switch i32 %81, label %159 [
    i32 0, label %82
    i32 1, label %87
    i32 2, label %93
    i32 3, label %151
  ]

82:                                               ; preds = %79
  %83 = load i32, ptr %8, align 4, !tbaa !16
  %84 = load i32, ptr %10, align 4, !tbaa !16
  %85 = call ptr @opcode_name(i32 noundef %84)
  %86 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %83, ptr noundef %85)
  br label %87

87:                                               ; preds = %82, %79
  %88 = load i32, ptr %8, align 4, !tbaa !16
  %89 = load i32, ptr %10, align 4, !tbaa !16
  %90 = call ptr @opcode_name(i32 noundef %89)
  %91 = load i32, ptr %11, align 4, !tbaa !16
  %92 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %88, ptr noundef %90, i32 noundef %91)
  br label %160

93:                                               ; preds = %79
  %94 = load i32, ptr %10, align 4, !tbaa !16
  %95 = icmp eq i32 %94, 10
  br i1 %95, label %96, label %120

96:                                               ; preds = %93
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.inst_t, ptr %97, i32 0, i32 1
  %99 = load i32, ptr %98, align 4, !tbaa !23
  %100 = icmp eq i32 %99, 2
  br i1 %100, label %101, label %110

101:                                              ; preds = %96
  %102 = load i32, ptr %8, align 4, !tbaa !16
  %103 = load i32, ptr %10, align 4, !tbaa !16
  %104 = call ptr @opcode_name(i32 noundef %103)
  %105 = load i32, ptr %11, align 4, !tbaa !16
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.inst_t, ptr %106, i32 0, i32 5
  %108 = load double, ptr %107, align 8, !tbaa !24
  %109 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %102, ptr noundef %104, i32 noundef %105, double noundef %108)
  br label %119

110:                                              ; preds = %96
  %111 = load i32, ptr %8, align 4, !tbaa !16
  %112 = load i32, ptr %10, align 4, !tbaa !16
  %113 = call ptr @opcode_name(i32 noundef %112)
  %114 = load i32, ptr %11, align 4, !tbaa !16
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.inst_t, ptr %115, i32 0, i32 5
  %117 = load i64, ptr %116, align 8, !tbaa !24
  %118 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %111, ptr noundef %113, i32 noundef %114, i64 noundef %117)
  br label %119

119:                                              ; preds = %110, %101
  br label %150

120:                                              ; preds = %93
  %121 = load i32, ptr %10, align 4, !tbaa !16
  %122 = icmp eq i32 %121, 8
  br i1 %122, label %123, label %142

123:                                              ; preds = %120
  %124 = load i32, ptr %12, align 4, !tbaa !16
  %125 = icmp slt i32 %124, 4096
  br i1 %125, label %126, label %133

126:                                              ; preds = %123
  %127 = load i32, ptr %8, align 4, !tbaa !16
  %128 = load i32, ptr %10, align 4, !tbaa !16
  %129 = call ptr @opcode_name(i32 noundef %128)
  %130 = load i32, ptr %11, align 4, !tbaa !16
  %131 = load i32, ptr %12, align 4, !tbaa !16
  %132 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %127, ptr noundef %129, i32 noundef %130, i32 noundef %131)
  br label %141

133:                                              ; preds = %123
  %134 = load i32, ptr %8, align 4, !tbaa !16
  %135 = load i32, ptr %10, align 4, !tbaa !16
  %136 = call ptr @opcode_name(i32 noundef %135)
  %137 = load i32, ptr %11, align 4, !tbaa !16
  %138 = load i32, ptr %12, align 4, !tbaa !16
  %139 = call ptr @opcode_constname(i32 noundef %138)
  %140 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %134, ptr noundef %136, i32 noundef %137, ptr noundef %139)
  br label %141

141:                                              ; preds = %133, %126
  br label %149

142:                                              ; preds = %120
  %143 = load i32, ptr %8, align 4, !tbaa !16
  %144 = load i32, ptr %10, align 4, !tbaa !16
  %145 = call ptr @opcode_name(i32 noundef %144)
  %146 = load i32, ptr %11, align 4, !tbaa !16
  %147 = load i32, ptr %12, align 4, !tbaa !16
  %148 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %143, ptr noundef %145, i32 noundef %146, i32 noundef %147)
  br label %149

149:                                              ; preds = %142, %141
  br label %150

150:                                              ; preds = %149, %119
  br label %160

151:                                              ; preds = %79
  %152 = load i32, ptr %8, align 4, !tbaa !16
  %153 = load i32, ptr %10, align 4, !tbaa !16
  %154 = call ptr @opcode_name(i32 noundef %153)
  %155 = load i32, ptr %11, align 4, !tbaa !16
  %156 = load i32, ptr %12, align 4, !tbaa !16
  %157 = load i32, ptr %13, align 4, !tbaa !16
  %158 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %152, ptr noundef %154, i32 noundef %155, i32 noundef %156, i32 noundef %157)
  br label %160

159:                                              ; preds = %79
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 322, ptr noundef @__PRETTY_FUNCTION__.ircode_dump) #5
  unreachable

160:                                              ; preds = %151, %150, %87
  %161 = load i32, ptr %8, align 4, !tbaa !16
  %162 = add i32 %161, 1
  store i32 %162, ptr %8, align 4, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  store i32 0, ptr %6, align 4
  br label %163

163:                                              ; preds = %160, %67, %61, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  %164 = load i32, ptr %6, align 4
  switch i32 %164, label %173 [
    i32 0, label %165
    i32 4, label %166
  ]

165:                                              ; preds = %163
  br label %166

166:                                              ; preds = %165, %163
  %167 = load i32, ptr %7, align 4, !tbaa !16
  %168 = add i32 %167, 1
  store i32 %168, ptr %7, align 4, !tbaa !16
  br label %26, !llvm.loop !25

169:                                              ; preds = %30
  store i32 0, ptr %6, align 4
  br label %170

170:                                              ; preds = %169, %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  %171 = load i32, ptr %6, align 4
  switch i32 %171, label %173 [
    i32 0, label %172
    i32 1, label %172
  ]

172:                                              ; preds = %170, %170
  ret void

173:                                              ; preds = %170, %163
  unreachable
}

declare i32 @printf(ptr noundef, ...) #3

declare ptr @opcode_name(i32 noundef) #3

declare ptr @opcode_constname(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 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 = { 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, !6, i64 0}
!10 = !{!"ircode_t", !6, i64 0, !11, i64 8, !11, i64 32, !11, i64 56, !13, i64 80, !13, i64 84, !13, i64 88, !14, i64 92, !15, i64 94, !7, i64 95, !7, i64 351, !11, i64 608, !11, i64 632}
!11 = !{!"", !12, i64 0, !12, i64 8, !6, i64 16}
!12 = !{!"long", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!13, !13, i64 0}
!17 = !{!11, !6, i64 16}
!18 = !{!19, !13, i64 0}
!19 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !7, i64 24, !13, i64 32}
!20 = !{!19, !13, i64 8}
!21 = !{!19, !13, i64 12}
!22 = !{!19, !13, i64 16}
!23 = !{!19, !13, i64 4}
!24 = !{!7, !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


; 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 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [18 x i8], align 1
@__PRETTY_FUNCTION__.ircode_dump = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @ircode_count(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @opcode_numop(i32 noundef) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @ircode_dump(ptr noundef %0) local_unnamed_addr #0 {
  %2 = load ptr, ptr %0, align 8, !tbaa !5
  %3 = tail call i32 @ircode_count(ptr noundef nonnull %0)
  %4 = icmp eq i32 %3, 0
  br i1 %4, label %6, label %.preheader

.preheader:                                       ; preds = %1
  %5 = getelementptr inbounds i8, ptr %2, i64 16
  %wide.trip.count = zext i32 %3 to i64
  br label %8

6:                                                ; preds = %1
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %.loopexit

8:                                                ; preds = %.preheader, %62
  %indvars.iv = phi i64 [ 0, %.preheader ], [ %indvars.iv.next, %62 ]
  %.05663 = phi i32 [ 0, %.preheader ], [ %.1, %62 ]
  %9 = load ptr, ptr %5, align 8, !tbaa !15
  %10 = getelementptr inbounds ptr, ptr %9, i64 %indvars.iv
  %11 = load ptr, ptr %10, align 8, !tbaa !16
  %12 = load i32, ptr %11, align 8, !tbaa !17
  %13 = getelementptr inbounds i8, ptr %11, i64 8
  %14 = load i32, ptr %13, align 8, !tbaa !19
  %15 = getelementptr inbounds i8, ptr %11, i64 12
  %16 = load i32, ptr %15, align 4, !tbaa !20
  %17 = getelementptr inbounds i8, ptr %11, i64 16
  %18 = load i32, ptr %17, align 8, !tbaa !21
  %19 = getelementptr inbounds i8, ptr %11, i64 4
  %20 = load i32, ptr %19, align 4, !tbaa !22
  switch i32 %20, label %23 [
    i32 4, label %62
    i32 7, label %62
    i32 3, label %21
  ]

21:                                               ; preds = %8
  %22 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %14)
  br label %62

23:                                               ; preds = %8
  %24 = tail call zeroext i8 @opcode_numop(i32 noundef %12)
  %25 = icmp eq i32 %12, 48
  %26 = icmp eq i32 %16, 0
  %or.cond = select i1 %25, i1 %26, i1 false
  %trunc = select i1 %or.cond, i8 2, i8 %24
  switch i8 %trunc, label %59 [
    i8 0, label %27
    i8 1, label %30
    i8 2, label %33
    i8 3, label %56
  ]

27:                                               ; preds = %23
  %28 = tail call ptr @opcode_name(i32 noundef %12) #4
  %29 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %.05663, ptr noundef %28)
  br label %30

30:                                               ; preds = %27, %23
  %31 = tail call ptr @opcode_name(i32 noundef %12) #4
  %32 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %.05663, ptr noundef %31, i32 noundef %14)
  br label %60

33:                                               ; preds = %23
  switch i32 %12, label %53 [
    i32 10, label %34
    i32 8, label %45
  ]

34:                                               ; preds = %33
  %35 = load i32, ptr %19, align 4, !tbaa !22
  %36 = icmp eq i32 %35, 2
  %37 = tail call ptr @opcode_name(i32 noundef 10) #4
  %38 = getelementptr inbounds i8, ptr %11, i64 24
  br i1 %36, label %39, label %42

39:                                               ; preds = %34
  %40 = load double, ptr %38, align 8, !tbaa !23
  %41 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %.05663, ptr noundef %37, i32 noundef %14, double noundef %40)
  br label %60

42:                                               ; preds = %34
  %43 = load i64, ptr %38, align 8, !tbaa !23
  %44 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %.05663, ptr noundef %37, i32 noundef %14, i64 noundef %43)
  br label %60

45:                                               ; preds = %33
  %46 = icmp slt i32 %16, 4096
  %47 = tail call ptr @opcode_name(i32 noundef 8) #4
  br i1 %46, label %48, label %50

48:                                               ; preds = %45
  %49 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %.05663, ptr noundef %47, i32 noundef %14, i32 noundef %16)
  br label %60

50:                                               ; preds = %45
  %51 = tail call ptr @opcode_constname(i32 noundef %16) #4
  %52 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef %.05663, ptr noundef %47, i32 noundef %14, ptr noundef %51)
  br label %60

53:                                               ; preds = %33
  %54 = tail call ptr @opcode_name(i32 noundef %12) #4
  %55 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %.05663, ptr noundef %54, i32 noundef %14, i32 noundef %16)
  br label %60

56:                                               ; preds = %23
  %57 = tail call ptr @opcode_name(i32 noundef %12) #4
  %58 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, i32 noundef %.05663, ptr noundef %57, i32 noundef %14, i32 noundef %16, i32 noundef %18)
  br label %60

59:                                               ; preds = %23
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 322, ptr noundef nonnull @__PRETTY_FUNCTION__.ircode_dump) #5
  unreachable

60:                                               ; preds = %42, %39, %48, %50, %53, %56, %30
  %61 = add i32 %.05663, 1
  br label %62

62:                                               ; preds = %8, %8, %60, %21
  %.1 = phi i32 [ %.05663, %21 ], [ %61, %60 ], [ %.05663, %8 ], [ %.05663, %8 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %8, !llvm.loop !24

.loopexit:                                        ; preds = %62, %6
  ret void
}

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

declare ptr @opcode_name(i32 noundef) local_unnamed_addr #3

declare ptr @opcode_constname(i32 noundef) local_unnamed_addr #3

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 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 #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 = { 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, !7, i64 0}
!6 = !{!"ircode_t", !7, i64 0, !10, i64 8, !10, i64 32, !10, i64 56, !12, i64 80, !12, i64 84, !12, i64 88, !13, i64 92, !14, i64 94, !8, i64 95, !8, i64 351, !10, i64 608, !10, i64 632}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !11, i64 0, !11, i64 8, !7, i64 16}
!11 = !{!"long", !8, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!"short", !8, i64 0}
!14 = !{!"_Bool", !8, i64 0}
!15 = !{!10, !7, i64 16}
!16 = !{!7, !7, i64 0}
!17 = !{!18, !12, i64 0}
!18 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !8, i64 24, !12, i64 32}
!19 = !{!18, !12, i64 8}
!20 = !{!18, !12, i64 12}
!21 = !{!18, !12, i64 16}
!22 = !{!18, !12, i64 4}
!23 = !{!8, !8, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


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