#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ WINDOW;

/* Variables and functions */
int /*<<< orphan*/ A_BOLD;
int /*<<< orphan*/ mvwaddwstr(int /*<<< orphan*/ *, int, int, char *);
int /*<<< orphan*/ mvwprintw(int /*<<< orphan*/ *, int, int, char *, ...);
int /*<<< orphan*/ wattroff(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ wattron(int /*<<< orphan*/ *, int /*<<< orphan*/);
void yatzy_ui_print_die(WINDOW *win, int y, int x, int accessor, int die,
                        bool lock) {
  mvwprintw(win, y + 0, x, "+-----+");
  mvwprintw(win, y + 1, x, "|     |");
  mvwprintw(win, y + 2, x, "|     |");
  mvwprintw(win, y + 3, x, "|     |");
  mvwprintw(win, y + 4, x, "+-----+");
  wattron(win, A_BOLD);
  mvwprintw(win, y + 6, x + 3, "%d", accessor);
  wattroff(win, A_BOLD);
  if (lock == false) {
    mvwprintw(win, y + 2, x + 2, " ? ");
    return;
  }
  switch (die) {
  case 1:
    mvwaddwstr(win, y + 2, x + 2, L" \u25CF ");
    break;
  case 2:
    mvwaddwstr(win, y + 1, x + 2, L"  \u25CF");
    mvwaddwstr(win, y + 3, x + 2, L"\u25CF  ");
    break;
  case 3:
    mvwaddwstr(win, y + 1, x + 2, L"  \u25CF");
    mvwaddwstr(win, y + 2, x + 2, L" \u25CF ");
    mvwaddwstr(win, y + 3, x + 2, L"\u25CF  ");
    break;
  case 4:
    mvwaddwstr(win, y + 1, x + 2, L"\u25CF \u25CF");
    mvwaddwstr(win, y + 3, x + 2, L"\u25CF \u25CF");
    break;
  case 5:
    mvwaddwstr(win, y + 1, x + 2, L"\u25CF \u25CF");
    mvwaddwstr(win, y + 2, x + 2, L" \u25CF ");
    mvwaddwstr(win, y + 3, x + 2, L"\u25CF \u25CF");
    break;
  case 6:
    mvwaddwstr(win, y + 1, x + 2, L"\u25CF \u25CF");
    mvwaddwstr(win, y + 2, x + 2, L"\u25CF \u25CF");
    mvwaddwstr(win, y + 3, x + 2, L"\u25CF \u25CF");
    break;
  }
}


x86 assembly (clang, -O0):
<yatzy_ui_print_die>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
mov    %r9d,-0x1c(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
add    $0x0,%esi
mov    -0x10(%rbp),%edx
lea    0xea7(%rip),%rcx
mov    $0x0,%al
call   1030 <mvwprintw@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
add    $0x1,%esi
mov    -0x10(%rbp),%edx
lea    0xe94(%rip),%rcx
mov    $0x0,%al
call   1030 <mvwprintw@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
add    $0x2,%esi
mov    -0x10(%rbp),%edx
lea    0xe79(%rip),%rcx
mov    $0x0,%al
call   1030 <mvwprintw@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
add    $0x3,%esi
mov    -0x10(%rbp),%edx
lea    0xe5e(%rip),%rcx
mov    $0x0,%al
call   1030 <mvwprintw@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
add    $0x4,%esi
mov    -0x10(%rbp),%edx
lea    0xe3b(%rip),%rcx
mov    $0x0,%al
call   1030 <mvwprintw@plt>
mov    -0x8(%rbp),%rdi
mov    0x2df1(%rip),%rax
mov    (%rax),%esi
call   1060 <wattron@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
add    $0x6,%esi
mov    -0x10(%rbp),%edx
add    $0x3,%edx
mov    -0x14(%rbp),%r8d
lea    0xe17(%rip),%rcx
mov    $0x0,%al
call   1030 <mvwprintw@plt>
mov    -0x8(%rbp),%rdi
mov    0x2dbd(%rip),%rax
mov    (%rax),%esi
call   1050 <wattroff@plt>
cmpl   $0x0,-0x1c(%rbp)
jne    1257 <yatzy_ui_print_die+0x117>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
add    $0x2,%esi
mov    -0x10(%rbp),%edx
add    $0x2,%edx
lea    0xde0(%rip),%rcx
mov    $0x0,%al
call   1030 <mvwprintw@plt>
jmp    1421 <yatzy_ui_print_die+0x2e1>
mov    -0x18(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x5,%eax
ja     1421 <yatzy_ui_print_die+0x2e1>
mov    -0x28(%rbp),%rax
lea    0xd89(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
add    $0x2,%esi
mov    -0x10(%rbp),%edx
add    $0x2,%edx
lea    0xd99(%rip),%rcx
call   1040 <mvwaddwstr@plt>
jmp    1421 <yatzy_ui_print_die+0x2e1>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
add    $0x1,%esi
mov    -0x10(%rbp),%edx
add    $0x2,%edx
lea    0xd88(%rip),%rcx
call   1040 <mvwaddwstr@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
add    $0x3,%esi
mov    -0x10(%rbp),%edx
add    $0x2,%edx
lea    0xd7c(%rip),%rcx
call   1040 <mvwaddwstr@plt>
jmp    1421 <yatzy_ui_print_die+0x2e1>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
add    $0x1,%esi
mov    -0x10(%rbp),%edx
add    $0x2,%edx
lea    0xd4b(%rip),%rcx
call   1040 <mvwaddwstr@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
add    $0x2,%esi
mov    -0x10(%rbp),%edx
add    $0x2,%edx
lea    0xd1f(%rip),%rcx
call   1040 <mvwaddwstr@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
add    $0x3,%esi
mov    -0x10(%rbp),%edx
add    $0x2,%edx
lea    0xd23(%rip),%rcx
call   1040 <mvwaddwstr@plt>
jmp    1421 <yatzy_ui_print_die+0x2e1>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
add    $0x1,%esi
mov    -0x10(%rbp),%edx
add    $0x2,%edx
lea    0xd12(%rip),%rcx
call   1040 <mvwaddwstr@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
add    $0x3,%esi
mov    -0x10(%rbp),%edx
add    $0x2,%edx
lea    0xcf6(%rip),%rcx
call   1040 <mvwaddwstr@plt>
jmp    1421 <yatzy_ui_print_die+0x2e1>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
add    $0x1,%esi
mov    -0x10(%rbp),%edx
add    $0x2,%edx
lea    0xcd5(%rip),%rcx
call   1040 <mvwaddwstr@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
add    $0x2,%esi
mov    -0x10(%rbp),%edx
add    $0x2,%edx
lea    0xc89(%rip),%rcx
call   1040 <mvwaddwstr@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
add    $0x3,%esi
mov    -0x10(%rbp),%edx
add    $0x2,%edx
lea    0xc9d(%rip),%rcx
call   1040 <mvwaddwstr@plt>
jmp    1421 <yatzy_ui_print_die+0x2e1>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
add    $0x1,%esi
mov    -0x10(%rbp),%edx
add    $0x2,%edx
lea    0xc7c(%rip),%rcx
call   1040 <mvwaddwstr@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
add    $0x2,%esi
mov    -0x10(%rbp),%edx
add    $0x2,%edx
lea    0xc60(%rip),%rcx
call   1040 <mvwaddwstr@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
add    $0x3,%esi
mov    -0x10(%rbp),%edx
add    $0x2,%edx
lea    0xc44(%rip),%rcx
call   1040 <mvwaddwstr@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<yatzy_ui_print_die>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r9d,0xc(%rsp)
mov    %r8,0x10(%rsp)
mov    %ecx,0x8(%rsp)
mov    %edx,%r14d
mov    %esi,%r15d
mov    %rdi,%rbx
lea    0xeac(%rip),%rbp
mov    %rbp,%rcx
xor    %eax,%eax
call   1030 <mvwprintw@plt>
lea    0x1(%r15),%esi
lea    0xe9f(%rip),%r12
mov    %rbx,%rdi
mov    %esi,(%rsp)
mov    %r14d,%edx
mov    %r12,%rcx
xor    %eax,%eax
call   1030 <mvwprintw@plt>
lea    0x2(%r15),%r13d
mov    %rbx,%rdi
mov    %r13d,%esi
mov    %r14d,%edx
mov    %r12,%rcx
xor    %eax,%eax
call   1030 <mvwprintw@plt>
lea    0x3(%r15),%esi
mov    %rbx,%rdi
mov    %esi,0x4(%rsp)
mov    %r14d,%edx
mov    %r12,%rcx
xor    %eax,%eax
call   1030 <mvwprintw@plt>
lea    0x4(%r15),%esi
mov    %rbx,%rdi
mov    %r14d,%edx
mov    %rbp,%rcx
xor    %eax,%eax
call   1030 <mvwprintw@plt>
mov    0x2e02(%rip),%rbp
mov    0x0(%rbp),%esi
mov    %rbx,%rdi
call   1060 <wattron@plt>
add    $0x6,%r15d
lea    0x3(%r14),%edx
lea    0xe30(%rip),%rcx
mov    %rbx,%rdi
mov    %r15d,%esi
mov    0x8(%rsp),%r8d
xor    %eax,%eax
call   1030 <mvwprintw@plt>
mov    0x0(%rbp),%esi
mov    %rbx,%rdi
call   1050 <wattroff@plt>
cmpl   $0x0,0xc(%rsp)
je     1250 <yatzy_ui_print_die+0x110>
mov    0x10(%rsp),%rcx
add    $0xffffffff,%ecx
cmp    $0x5,%ecx
ja     135b <yatzy_ui_print_die+0x21b>
lea    0xdcc(%rip),%rax
movslq (%rax,%rcx,4),%rcx
add    %rax,%rcx
jmp    *%rcx
add    $0x2,%r14d
lea    0xde8(%rip),%rcx
mov    %rbx,%rdi
mov    %r13d,%esi
jmp    12c8 <yatzy_ui_print_die+0x188>
add    $0x2,%r14d
lea    0xdd0(%rip),%rcx
mov    %rbx,%rdi
mov    %r13d,%esi
mov    %r14d,%edx
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <mvwprintw@plt>
add    $0x2,%r14d
lea    0xdbc(%rip),%rcx
mov    %rbx,%rdi
mov    (%rsp),%esi
jmp    12b2 <yatzy_ui_print_die+0x172>
add    $0x2,%r14d
lea    0xda9(%rip),%rcx
mov    %rbx,%rdi
mov    (%rsp),%esi
mov    %r14d,%edx
call   1040 <mvwaddwstr@plt>
lea    0xd84(%rip),%rcx
mov    %rbx,%rdi
mov    %r13d,%esi
mov    %r14d,%edx
call   1040 <mvwaddwstr@plt>
lea    0xd8f(%rip),%rcx
mov    %rbx,%rdi
mov    0x4(%rsp),%esi
mov    %r14d,%edx
jmp    1348 <yatzy_ui_print_die+0x208>
add    $0x2,%r14d
lea    0xd88(%rip),%rbp
mov    %rbx,%rdi
mov    (%rsp),%esi
jmp    1330 <yatzy_ui_print_die+0x1f0>
add    $0x2,%r14d
lea    0xd75(%rip),%rbp
mov    %rbx,%rdi
mov    (%rsp),%esi
mov    %r14d,%edx
mov    %rbp,%rcx
call   1040 <mvwaddwstr@plt>
lea    0xd2d(%rip),%rcx
mov    %rbx,%rdi
mov    %r13d,%esi
mov    %r14d,%edx
jmp    1336 <yatzy_ui_print_die+0x1f6>
add    $0x2,%r14d
lea    0xd47(%rip),%rbp
mov    %rbx,%rdi
mov    (%rsp),%esi
mov    %r14d,%edx
mov    %rbp,%rcx
call   1040 <mvwaddwstr@plt>
mov    %rbx,%rdi
mov    %r13d,%esi
mov    %r14d,%edx
mov    %rbp,%rcx
call   1040 <mvwaddwstr@plt>
mov    %rbx,%rdi
mov    0x4(%rsp),%esi
mov    %r14d,%edx
mov    %rbp,%rcx
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <mvwaddwstr@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [8 x i8] c"+-----+\00"
@.str.1 = [8 x i8] c"| |\00"
@A_BOLD = global i32 0
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [4 x i8] c" ? \00"
@.str.4 = [4 x i32] [i32 32, i32 9679, i32 32, i32 0]
@.str.5 = [4 x i32] [i32 32, i32 32, i32 9679, i32 0]
@.str.6 = [4 x i32] [i32 9679, i32 32, i32 32, i32 0]
@.str.7 = [4 x i32] [i32 9679, i32 32, i32 9679, i32 0]
define void @yatzy_ui_print_die(i32* %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = alloca i32*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32* %0, i32** %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i32 %5, i32* %12
%13 = load i32*, i32** %7
%14 = load i32, i32* %8
%15 = add nsw i32 %14, 0
%16 = load i32, i32* %9
%17 = call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %13, i32 %15, i32 %16, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%18 = load i32*, i32** %7
%19 = load i32, i32* %8
%20 = add nsw i32 %19, 1
%21 = load i32, i32* %9
%22 = call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %18, i32 %20, i32 %21, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%23 = load i32*, i32** %7
%24 = load i32, i32* %8
%25 = add nsw i32 %24, 2
%26 = load i32, i32* %9
%27 = call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %23, i32 %25, i32 %26, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%28 = load i32*, i32** %7
%29 = load i32, i32* %8
%30 = add nsw i32 %29, 3
%31 = load i32, i32* %9
%32 = call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %28, i32 %30, i32 %31, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%33 = load i32*, i32** %7
%34 = load i32, i32* %8
%35 = add nsw i32 %34, 4
%36 = load i32, i32* %9
%37 = call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %33, i32 %35, i32 %36, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%38 = load i32*, i32** %7
%39 = load i32, i32* @A_BOLD
%40 = call i32 @wattron(i32* %38, i32 %39)
%41 = load i32*, i32** %7
%42 = load i32, i32* %8
%43 = add nsw i32 %42, 6
%44 = load i32, i32* %9
%45 = add nsw i32 %44, 3
%46 = load i32, i32* %10
%47 = call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %41, i32 %43, i32 %45, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %46)
%48 = load i32*, i32** %7
%49 = load i32, i32* @A_BOLD
%50 = call i32 @wattroff(i32* %48, i32 %49)
%51 = load i32, i32* %12
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %60
53: ; preds = %6
%54 = load i32*, i32** %7
%55 = load i32, i32* %8
%56 = add nsw i32 %55, 2
%57 = load i32, i32* %9
%58 = add nsw i32 %57, 2
%59 = call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %54, i32 %56, i32 %58, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
br label %152
60: ; preds = %6
%61 = load i32, i32* %11
switch i32 %61, label %152 [
i32 1, label %62
i32 2, label %69
i32 3, label %82
i32 4, label %101
i32 5, label %114
i32 6, label %133
]
62: ; preds = %60
%63 = load i32*, i32** %7
%64 = load i32, i32* %8
%65 = add nsw i32 %64, 2
%66 = load i32, i32* %9
%67 = add nsw i32 %66, 2
%68 = call i32 @mvwaddwstr(i32* %63, i32 %65, i32 %67, i8* bitcast ([4 x i32]* @.str.4 to i8*))
br label %152
69: ; preds = %60
%70 = load i32*, i32** %7
%71 = load i32, i32* %8
%72 = add nsw i32 %71, 1
%73 = load i32, i32* %9
%74 = add nsw i32 %73, 2
%75 = call i32 @mvwaddwstr(i32* %70, i32 %72, i32 %74, i8* bitcast ([4 x i32]* @.str.5 to i8*))
%76 = load i32*, i32** %7
%77 = load i32, i32* %8
%78 = add nsw i32 %77, 3
%79 = load i32, i32* %9
%80 = add nsw i32 %79, 2
%81 = call i32 @mvwaddwstr(i32* %76, i32 %78, i32 %80, i8* bitcast ([4 x i32]* @.str.6 to i8*))
br label %152
82: ; preds = %60
%83 = load i32*, i32** %7
%84 = load i32, i32* %8
%85 = add nsw i32 %84, 1
%86 = load i32, i32* %9
%87 = add nsw i32 %86, 2
%88 = call i32 @mvwaddwstr(i32* %83, i32 %85, i32 %87, i8* bitcast ([4 x i32]* @.str.5 to i8*))
%89 = load i32*, i32** %7
%90 = load i32, i32* %8
%91 = add nsw i32 %90, 2
%92 = load i32, i32* %9
%93 = add nsw i32 %92, 2
%94 = call i32 @mvwaddwstr(i32* %89, i32 %91, i32 %93, i8* bitcast ([4 x i32]* @.str.4 to i8*))
%95 = load i32*, i32** %7
%96 = load i32, i32* %8
%97 = add nsw i32 %96, 3
%98 = load i32, i32* %9
%99 = add nsw i32 %98, 2
%100 = call i32 @mvwaddwstr(i32* %95, i32 %97, i32 %99, i8* bitcast ([4 x i32]* @.str.6 to i8*))
br label %152
101: ; preds = %60
%102 = load i32*, i32** %7
%103 = load i32, i32* %8
%104 = add nsw i32 %103, 1
%105 = load i32, i32* %9
%106 = add nsw i32 %105, 2
%107 = call i32 @mvwaddwstr(i32* %102, i32 %104, i32 %106, i8* bitcast ([4 x i32]* @.str.7 to i8*))
%108 = load i32*, i32** %7
%109 = load i32, i32* %8
%110 = add nsw i32 %109, 3
%111 = load i32, i32* %9
%112 = add nsw i32 %111, 2
%113 = call i32 @mvwaddwstr(i32* %108, i32 %110, i32 %112, i8* bitcast ([4 x i32]* @.str.7 to i8*))
br label %152
114: ; preds = %60
%115 = load i32*, i32** %7
%116 = load i32, i32* %8
%117 = add nsw i32 %116, 1
%118 = load i32, i32* %9
%119 = add nsw i32 %118, 2
%120 = call i32 @mvwaddwstr(i32* %115, i32 %117, i32 %119, i8* bitcast ([4 x i32]* @.str.7 to i8*))
%121 = load i32*, i32** %7
%122 = load i32, i32* %8
%123 = add nsw i32 %122, 2
%124 = load i32, i32* %9
%125 = add nsw i32 %124, 2
%126 = call i32 @mvwaddwstr(i32* %121, i32 %123, i32 %125, i8* bitcast ([4 x i32]* @.str.4 to i8*))
%127 = load i32*, i32** %7
%128 = load i32, i32* %8
%129 = add nsw i32 %128, 3
%130 = load i32, i32* %9
%131 = add nsw i32 %130, 2
%132 = call i32 @mvwaddwstr(i32* %127, i32 %129, i32 %131, i8* bitcast ([4 x i32]* @.str.7 to i8*))
br label %152
133: ; preds = %60
%134 = load i32*, i32** %7
%135 = load i32, i32* %8
%136 = add nsw i32 %135, 1
%137 = load i32, i32* %9
%138 = add nsw i32 %137, 2
%139 = call i32 @mvwaddwstr(i32* %134, i32 %136, i32 %138, i8* bitcast ([4 x i32]* @.str.7 to i8*))
%140 = load i32*, i32** %7
%141 = load i32, i32* %8
%142 = add nsw i32 %141, 2
%143 = load i32, i32* %9
%144 = add nsw i32 %143, 2
%145 = call i32 @mvwaddwstr(i32* %140, i32 %142, i32 %144, i8* bitcast ([4 x i32]* @.str.7 to i8*))
%146 = load i32*, i32** %7
%147 = load i32, i32* %8
%148 = add nsw i32 %147, 3
%149 = load i32, i32* %9
%150 = add nsw i32 %149, 2
%151 = call i32 @mvwaddwstr(i32* %146, i32 %148, i32 %150, i8* bitcast ([4 x i32]* @.str.7 to i8*))
br label %152
152: ; preds = %53, %60, %133, %114, %101, %82, %69, %62
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"+-----+\00"
@.str.1 = [8 x i8] c"| |\00"
@A_BOLD = global i32 0
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [4 x i8] c" ? \00"
@.str.4 = [4 x i32] [i32 32, i32 9679, i32 32, i32 0]
@.str.5 = [4 x i32] [i32 32, i32 32, i32 9679, i32 0]
@.str.6 = [4 x i32] [i32 9679, i32 32, i32 32, i32 0]
@.str.7 = [4 x i32] [i32 9679, i32 32, i32 9679, i32 0]
define void @yatzy_ui_print_die(i32* %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = tail call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %0, i32 %1, i32 %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%8 = add nsw i32 %1, 1
%9 = tail call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %0, i32 %8, i32 %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%10 = add nsw i32 %1, 2
%11 = tail call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %0, i32 %10, i32 %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%12 = add nsw i32 %1, 3
%13 = tail call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %0, i32 %12, i32 %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%14 = add nsw i32 %1, 4
%15 = tail call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %0, i32 %14, i32 %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%16 = load i32, i32* @A_BOLD
%17 = tail call i32 @wattron(i32* %0, i32 %16)
%18 = add nsw i32 %1, 6
%19 = add nsw i32 %2, 3
%20 = tail call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %0, i32 %18, i32 %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %3)
%21 = load i32, i32* @A_BOLD
%22 = tail call i32 @wattroff(i32* %0, i32 %21)
%23 = icmp eq i32 %5, 0
br i1 %23, label %24, label %27
24: ; preds = %6
%25 = add nsw i32 %2, 2
%26 = tail call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %0, i32 %10, i32 %25, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
br label %54
27: ; preds = %6
switch i32 %4, label %54 [
i32 1, label %28
i32 2, label %31
i32 3, label %35
i32 4, label %40
i32 5, label %44
i32 6, label %49
]
28: ; preds = %27
%29 = add nsw i32 %2, 2
%30 = tail call i32 @mvwaddwstr(i32* %0, i32 %10, i32 %29, i8* bitcast ([4 x i32]* @.str.4 to i8*))
br label %54
31: ; preds = %27
%32 = add nsw i32 %2, 2
%33 = tail call i32 @mvwaddwstr(i32* %0, i32 %8, i32 %32, i8* bitcast ([4 x i32]* @.str.5 to i8*))
%34 = tail call i32 @mvwaddwstr(i32* %0, i32 %12, i32 %32, i8* bitcast ([4 x i32]* @.str.6 to i8*))
br label %54
35: ; preds = %27
%36 = add nsw i32 %2, 2
%37 = tail call i32 @mvwaddwstr(i32* %0, i32 %8, i32 %36, i8* bitcast ([4 x i32]* @.str.5 to i8*))
%38 = tail call i32 @mvwaddwstr(i32* %0, i32 %10, i32 %36, i8* bitcast ([4 x i32]* @.str.4 to i8*))
%39 = tail call i32 @mvwaddwstr(i32* %0, i32 %12, i32 %36, i8* bitcast ([4 x i32]* @.str.6 to i8*))
br label %54
40: ; preds = %27
%41 = add nsw i32 %2, 2
%42 = tail call i32 @mvwaddwstr(i32* %0, i32 %8, i32 %41, i8* bitcast ([4 x i32]* @.str.7 to i8*))
%43 = tail call i32 @mvwaddwstr(i32* %0, i32 %12, i32 %41, i8* bitcast ([4 x i32]* @.str.7 to i8*))
br label %54
44: ; preds = %27
%45 = add nsw i32 %2, 2
%46 = tail call i32 @mvwaddwstr(i32* %0, i32 %8, i32 %45, i8* bitcast ([4 x i32]* @.str.7 to i8*))
%47 = tail call i32 @mvwaddwstr(i32* %0, i32 %10, i32 %45, i8* bitcast ([4 x i32]* @.str.4 to i8*))
%48 = tail call i32 @mvwaddwstr(i32* %0, i32 %12, i32 %45, i8* bitcast ([4 x i32]* @.str.7 to i8*))
br label %54
49: ; preds = %27
%50 = add nsw i32 %2, 2
%51 = tail call i32 @mvwaddwstr(i32* %0, i32 %8, i32 %50, i8* bitcast ([4 x i32]* @.str.7 to i8*))
%52 = tail call i32 @mvwaddwstr(i32* %0, i32 %10, i32 %50, i8* bitcast ([4 x i32]* @.str.7 to i8*))
%53 = tail call i32 @mvwaddwstr(i32* %0, i32 %12, i32 %50, i8* bitcast ([4 x i32]* @.str.7 to i8*))
br label %54
54: ; preds = %24, %27, %49, %44, %40, %35, %31, %28
ret void
}