; LLVM IR from ANL-CESAR/XSBench :: opencl (io)

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

@.str.14 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [32 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @logo(i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @border_print() #0

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

; Function Attrs: nounwind uwtable
declare dso_local void @center_print(ptr noundef, i32 noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @fancy_int(i64 noundef) #0

; Function Attrs: nounwind uwtable
define dso_local void @print_inputs(ptr noundef byval(%struct.Inputs) align 8 %0, i32 noundef %1, i32 noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  store i32 %1, ptr %4, align 4, !tbaa !5
  store i32 %2, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %8 = call i64 @estimate_mem_usage(ptr noundef byval(%struct.Inputs) align 8 %0)
  %9 = trunc i64 %8 to i32
  store i32 %9, ptr %6, align 4, !tbaa !5
  %10 = load i32, ptr %5, align 4, !tbaa !5
  call void @logo(i32 noundef %10)
  call void @center_print(ptr noundef @.str.14, i32 noundef 79)
  call void @border_print()
  %11 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  %12 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 8
  %13 = load i32, ptr %12, align 4, !tbaa !9
  %14 = icmp eq i32 %13, 2
  br i1 %14, label %15, label %17

15:                                               ; preds = %3
  %16 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  br label %19

17:                                               ; preds = %3
  %18 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  br label %19

19:                                               ; preds = %17, %15
  %20 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 5
  %21 = load i32, ptr %20, align 8, !tbaa !12
  %22 = icmp eq i32 %21, 1
  br i1 %22, label %23, label %25

23:                                               ; preds = %19
  %24 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
  br label %34

25:                                               ; preds = %19
  %26 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 5
  %27 = load i32, ptr %26, align 8, !tbaa !12
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %31

29:                                               ; preds = %25
  %30 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
  br label %33

31:                                               ; preds = %25
  %32 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
  br label %33

33:                                               ; preds = %31, %29
  br label %34

34:                                               ; preds = %33, %23
  %35 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, i32 noundef 12)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  store ptr @.str.22, ptr %7, align 8, !tbaa !13
  %36 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 4
  %37 = load i32, ptr %36, align 4, !tbaa !15
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %40

39:                                               ; preds = %34
  store ptr @.str.23, ptr %7, align 8, !tbaa !13
  br label %52

40:                                               ; preds = %34
  %41 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 4
  %42 = load i32, ptr %41, align 4, !tbaa !15
  %43 = icmp eq i32 %42, 2
  br i1 %43, label %44, label %45

44:                                               ; preds = %40
  store ptr @.str.24, ptr %7, align 8, !tbaa !13
  br label %51

45:                                               ; preds = %40
  %46 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 4
  %47 = load i32, ptr %46, align 4, !tbaa !15
  %48 = icmp eq i32 %47, 3
  br i1 %48, label %49, label %50

49:                                               ; preds = %45
  store ptr @.str.25, ptr %7, align 8, !tbaa !13
  br label %50

50:                                               ; preds = %49, %45
  br label %51

51:                                               ; preds = %50, %44
  br label %52

52:                                               ; preds = %51, %39
  %53 = load ptr, ptr %7, align 8, !tbaa !13
  %54 = call i32 (ptr, ...) @printf(ptr noundef @.str.26, ptr noundef %53)
  %55 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 1
  %56 = load i64, ptr %55, align 8, !tbaa !16
  %57 = call i32 (ptr, ...) @printf(ptr noundef @.str.27, i64 noundef %56)
  %58 = call i32 (ptr, ...) @printf(ptr noundef @.str.28)
  %59 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 2
  %60 = load i64, ptr %59, align 8, !tbaa !17
  call void @fancy_int(i64 noundef %60)
  %61 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 5
  %62 = load i32, ptr %61, align 8, !tbaa !12
  %63 = icmp eq i32 %62, 2
  br i1 %63, label %64, label %69

64:                                               ; preds = %52
  %65 = call i32 (ptr, ...) @printf(ptr noundef @.str.29)
  %66 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 6
  %67 = load i32, ptr %66, align 4, !tbaa !18
  %68 = sext i32 %67 to i64
  call void @fancy_int(i64 noundef %68)
  br label %69

69:                                               ; preds = %64, %52
  %70 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 5
  %71 = load i32, ptr %70, align 8, !tbaa !12
  %72 = icmp eq i32 %71, 0
  br i1 %72, label %73, label %80

73:                                               ; preds = %69
  %74 = call i32 (ptr, ...) @printf(ptr noundef @.str.30)
  %75 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 1
  %76 = load i64, ptr %75, align 8, !tbaa !16
  %77 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 2
  %78 = load i64, ptr %77, align 8, !tbaa !17
  %79 = mul nsw i64 %76, %78
  call void @fancy_int(i64 noundef %79)
  br label %80

80:                                               ; preds = %73, %69
  %81 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 8
  %82 = load i32, ptr %81, align 4, !tbaa !9
  %83 = icmp eq i32 %82, 1
  br i1 %83, label %84, label %93

84:                                               ; preds = %80
  %85 = call i32 (ptr, ...) @printf(ptr noundef @.str.31)
  %86 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 7
  %87 = load i32, ptr %86, align 8, !tbaa !19
  %88 = sext i32 %87 to i64
  call void @fancy_int(i64 noundef %88)
  %89 = call i32 (ptr, ...) @printf(ptr noundef @.str.32)
  %90 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 3
  %91 = load i32, ptr %90, align 8, !tbaa !20
  %92 = sext i32 %91 to i64
  call void @fancy_int(i64 noundef %92)
  br label %93

93:                                               ; preds = %84, %80
  %94 = call i32 (ptr, ...) @printf(ptr noundef @.str.33)
  %95 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 3
  %96 = load i32, ptr %95, align 8, !tbaa !20
  %97 = sext i32 %96 to i64
  call void @fancy_int(i64 noundef %97)
  %98 = call i32 (ptr, ...) @printf(ptr noundef @.str.34)
  %99 = load i32, ptr %6, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  call void @fancy_int(i64 noundef %100)
  %101 = call i32 (ptr, ...) @printf(ptr noundef @.str.35)
  %102 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 9
  %103 = load i32, ptr %102, align 8, !tbaa !21
  %104 = icmp eq i32 %103, 0
  br i1 %104, label %105, label %107

105:                                              ; preds = %93
  %106 = call i32 (ptr, ...) @printf(ptr noundef @.str.36)
  br label %116

107:                                              ; preds = %93
  %108 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 9
  %109 = load i32, ptr %108, align 8, !tbaa !21
  %110 = icmp eq i32 %109, 1
  br i1 %110, label %111, label %113

111:                                              ; preds = %107
  %112 = call i32 (ptr, ...) @printf(ptr noundef @.str.37)
  br label %115

113:                                              ; preds = %107
  %114 = call i32 (ptr, ...) @printf(ptr noundef @.str.38)
  br label %115

115:                                              ; preds = %113, %111
  br label %116

116:                                              ; preds = %115, %105
  %117 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 11
  %118 = load i32, ptr %117, align 8, !tbaa !22
  %119 = icmp eq i32 %118, -1
  br i1 %119, label %120, label %122

120:                                              ; preds = %116
  %121 = call i32 (ptr, ...) @printf(ptr noundef @.str.39)
  br label %126

122:                                              ; preds = %116
  %123 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 11
  %124 = load i32, ptr %123, align 8, !tbaa !22
  %125 = call i32 (ptr, ...) @printf(ptr noundef @.str.40, i32 noundef %124)
  br label %126

126:                                              ; preds = %122, %120
  %127 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 12
  %128 = load i32, ptr %127, align 4, !tbaa !23
  %129 = icmp eq i32 %128, -1
  br i1 %129, label %130, label %132

130:                                              ; preds = %126
  %131 = call i32 (ptr, ...) @printf(ptr noundef @.str.41)
  br label %136

132:                                              ; preds = %126
  %133 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 12
  %134 = load i32, ptr %133, align 4, !tbaa !23
  %135 = call i32 (ptr, ...) @printf(ptr noundef @.str.42, i32 noundef %134)
  br label %136

136:                                              ; preds = %132, %130
  call void @border_print()
  call void @center_print(ptr noundef @.str.43, i32 noundef 79)
  call void @border_print()
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  ret void
}

declare i64 @estimate_mem_usage(ptr noundef byval(%struct.Inputs) align 8) #1

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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 44}
!10 = !{!"", !6, i64 0, !11, i64 8, !11, i64 16, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !6, i64 56, !6, i64 60}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !6, i64 32}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!10, !6, i64 28}
!16 = !{!10, !11, i64 8}
!17 = !{!10, !11, i64 16}
!18 = !{!10, !6, i64 36}
!19 = !{!10, !6, i64 40}
!20 = !{!10, !6, i64 24}
!21 = !{!10, !6, i64 48}
!22 = !{!10, !6, i64 56}
!23 = !{!10, !6, i64 60}


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

%struct.Inputs = type { i32, i64, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }

@.str.14 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [32 x i8], align 1
@switch.table.print_inputs = private unnamed_addr constant [4 x ptr] [ptr @.str.23, ptr @.str.22, ptr @.str.24, ptr @.str.25], align 8

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

; Function Attrs: nounwind uwtable
declare dso_local void @border_print() local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @fancy_int(i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @print_inputs(ptr noundef byval(%struct.Inputs) align 8 %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = tail call i64 @estimate_mem_usage(ptr noundef nonnull byval(%struct.Inputs) align 8 %0) #3
  tail call void @logo(i32 noundef %2)
  tail call void @center_print(ptr noundef nonnull @.str.14, i32 noundef 79)
  tail call void @border_print()
  %5 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  %6 = getelementptr inbounds i8, ptr %0, i64 44
  %7 = load i32, ptr %6, align 4, !tbaa !5
  %8 = icmp eq i32 %7, 2
  %.str.16..str.17 = select i1 %8, ptr @.str.16, ptr @.str.17
  %9 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.16..str.17)
  %10 = getelementptr inbounds i8, ptr %0, i64 32
  %11 = load i32, ptr %10, align 8, !tbaa !11
  %switch.selectcmp9 = icmp eq i32 %11, 0
  %switch.select10 = select i1 %switch.selectcmp9, ptr @.str.19, ptr @.str.20
  %switch.selectcmp11 = icmp eq i32 %11, 1
  %switch.select12 = select i1 %switch.selectcmp11, ptr @.str.18, ptr %switch.select10
  %12 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %switch.select12)
  %13 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21, i32 noundef 12)
  %14 = getelementptr inbounds i8, ptr %0, i64 28
  %15 = load i32, ptr %14, align 4, !tbaa !12
  %16 = icmp ult i32 %15, 4
  br i1 %16, label %switch.lookup, label %.fold.split

switch.lookup:                                    ; preds = %3
  %17 = zext nneg i32 %15 to i64
  %switch.gep = getelementptr inbounds [4 x ptr], ptr @switch.table.print_inputs, i64 0, i64 %17
  %switch.load = load ptr, ptr %switch.gep, align 8
  br label %.fold.split

.fold.split:                                      ; preds = %3, %switch.lookup
  %.0 = phi ptr [ %switch.load, %switch.lookup ], [ @.str.22, %3 ]
  %18 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26, ptr noundef nonnull %.0)
  %19 = getelementptr inbounds i8, ptr %0, i64 8
  %20 = load i64, ptr %19, align 8, !tbaa !13
  %21 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.27, i64 noundef %20)
  %22 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28)
  %23 = getelementptr inbounds i8, ptr %0, i64 16
  %24 = load i64, ptr %23, align 8, !tbaa !14
  tail call void @fancy_int(i64 noundef %24)
  %25 = load i32, ptr %10, align 8, !tbaa !11
  %26 = icmp eq i32 %25, 2
  br i1 %26, label %27, label %32

27:                                               ; preds = %.fold.split
  %28 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.29)
  %29 = getelementptr inbounds i8, ptr %0, i64 36
  %30 = load i32, ptr %29, align 4, !tbaa !15
  %31 = sext i32 %30 to i64
  tail call void @fancy_int(i64 noundef %31)
  %.pr = load i32, ptr %10, align 8, !tbaa !11
  br label %32

32:                                               ; preds = %27, %.fold.split
  %33 = phi i32 [ %.pr, %27 ], [ %25, %.fold.split ]
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %35, label %40

35:                                               ; preds = %32
  %36 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30)
  %37 = load i64, ptr %19, align 8, !tbaa !13
  %38 = load i64, ptr %23, align 8, !tbaa !14
  %39 = mul nsw i64 %38, %37
  tail call void @fancy_int(i64 noundef %39)
  br label %40

40:                                               ; preds = %35, %32
  %41 = load i32, ptr %6, align 4, !tbaa !5
  %42 = icmp eq i32 %41, 1
  br i1 %42, label %43, label %52

43:                                               ; preds = %40
  %44 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.31)
  %45 = getelementptr inbounds i8, ptr %0, i64 40
  %46 = load i32, ptr %45, align 8, !tbaa !16
  %47 = sext i32 %46 to i64
  tail call void @fancy_int(i64 noundef %47)
  %48 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.32)
  %49 = getelementptr inbounds i8, ptr %0, i64 24
  %50 = load i32, ptr %49, align 8, !tbaa !17
  %51 = sext i32 %50 to i64
  tail call void @fancy_int(i64 noundef %51)
  br label %52

52:                                               ; preds = %43, %40
  %53 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.33)
  %54 = getelementptr inbounds i8, ptr %0, i64 24
  %55 = load i32, ptr %54, align 8, !tbaa !17
  %56 = sext i32 %55 to i64
  tail call void @fancy_int(i64 noundef %56)
  %57 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.34)
  %sext = shl i64 %4, 32
  %58 = ashr exact i64 %sext, 32
  tail call void @fancy_int(i64 noundef %58)
  %59 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.35)
  %60 = getelementptr inbounds i8, ptr %0, i64 48
  %61 = load i32, ptr %60, align 8, !tbaa !18
  %switch.selectcmp = icmp eq i32 %61, 1
  %switch.select = select i1 %switch.selectcmp, ptr @.str.37, ptr @.str.38
  %switch.selectcmp7 = icmp eq i32 %61, 0
  %switch.select8 = select i1 %switch.selectcmp7, ptr @.str.36, ptr %switch.select
  %62 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %switch.select8)
  %63 = getelementptr inbounds i8, ptr %0, i64 56
  %64 = load i32, ptr %63, align 8, !tbaa !19
  %65 = icmp eq i32 %64, -1
  br i1 %65, label %66, label %68

66:                                               ; preds = %52
  %67 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.39)
  br label %70

68:                                               ; preds = %52
  %69 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40, i32 noundef %64)
  br label %70

70:                                               ; preds = %68, %66
  %71 = getelementptr inbounds i8, ptr %0, i64 60
  %72 = load i32, ptr %71, align 4, !tbaa !20
  %73 = icmp eq i32 %72, -1
  br i1 %73, label %74, label %76

74:                                               ; preds = %70
  %75 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.41)
  br label %78

76:                                               ; preds = %70
  %77 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.42, i32 noundef %72)
  br label %78

78:                                               ; preds = %76, %74
  tail call void @border_print()
  tail call void @center_print(ptr noundef nonnull @.str.43, i32 noundef 79)
  tail call void @border_print()
  ret void
}

declare i64 @estimate_mem_usage(ptr noundef byval(%struct.Inputs) align 8) 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 = { 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 #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 = { 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 44}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !7, i64 32}
!12 = !{!6, !7, i64 28}
!13 = !{!6, !10, i64 8}
!14 = !{!6, !10, i64 16}
!15 = !{!6, !7, i64 36}
!16 = !{!6, !7, i64 40}
!17 = !{!6, !7, i64 24}
!18 = !{!6, !7, i64 48}
!19 = !{!6, !7, i64 56}
!20 = !{!6, !7, i64 60}


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