#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*/ chtype;
typedef int /*<<< orphan*/ WINDOW;

/* Variables and functions */
int /*<<< orphan*/ ACS_BLOCK;
int /*<<< orphan*/ ACS_BOARD;
int /*<<< orphan*/ ACS_BTEE;
int /*<<< orphan*/ ACS_BULLET;
int /*<<< orphan*/ ACS_CKBOARD;
int /*<<< orphan*/ ACS_DARROW;
int /*<<< orphan*/ ACS_DEGREE;
int /*<<< orphan*/ ACS_DIAMOND;
int /*<<< orphan*/ ACS_HLINE;
int /*<<< orphan*/ ACS_LANTERN;
int /*<<< orphan*/ ACS_LARROW;
int /*<<< orphan*/ ACS_LLCORNER;
int /*<<< orphan*/ ACS_LRCORNER;
int /*<<< orphan*/ ACS_LTEE;
int /*<<< orphan*/ ACS_PLMINUS;
int /*<<< orphan*/ ACS_PLUS;
int /*<<< orphan*/ ACS_RARROW;
int /*<<< orphan*/ ACS_RTEE;
int /*<<< orphan*/ ACS_S1;
int /*<<< orphan*/ ACS_S9;
int /*<<< orphan*/ ACS_TTEE;
int /*<<< orphan*/ ACS_UARROW;
int /*<<< orphan*/ ACS_ULCORNER;
int /*<<< orphan*/ ACS_URCORNER;
int /*<<< orphan*/ ACS_VLINE;
int /*<<< orphan*/ A_BOLD;
int /*<<< orphan*/ A_NORMAL;
int COLS;
int LINES;
int /*<<< orphan*/ addch(int /*<<< orphan*/);
int /*<<< orphan*/ attrset(int /*<<< orphan*/);
int /*<<< orphan*/ getch();
int /*<<< orphan*/ move(int, int);
int /*<<< orphan*/ mvaddstr(int, int, char *);
int /*<<< orphan*/ printw(char *, char const *);
void acsTest(WINDOW *win) {
  static const char *acs_names[] = {
      "ACS_ULCORNER", "ACS_URCORNER", "ACS_LLCORNER", "ACS_LRCORNER",
      "ACS_LTEE",     "ACS_RTEE",     "ACS_TTEE",     "ACS_BTEE",
      "ACS_HLINE",    "ACS_VLINE",    "ACS_PLUS",     "ACS_S1",
      "ACS_S9",       "ACS_DIAMOND",  "ACS_CKBOARD",  "ACS_DEGREE",
      "ACS_PLMINUS",  "ACS_BULLET",   "ACS_LARROW",   "ACS_RARROW",
      "ACS_UARROW",   "ACS_DARROW",   "ACS_BOARD",    "ACS_LANTERN",
      "ACS_BLOCK"};
  chtype acs_values[25];
  int i, tmarg = (LINES - 22) / 2;
  attrset(A_BOLD);
  mvaddstr(tmarg, (COLS - 23) / 2, "Alternate Character Set");
  attrset(A_NORMAL);
  tmarg += 3;
  acs_values[0] = ACS_ULCORNER;
  acs_values[1] = ACS_URCORNER;
  acs_values[2] = ACS_LLCORNER;
  acs_values[3] = ACS_LRCORNER;
  acs_values[4] = ACS_LTEE;
  acs_values[5] = ACS_RTEE;
  acs_values[6] = ACS_TTEE;
  acs_values[7] = ACS_BTEE;
  acs_values[8] = ACS_HLINE;
  acs_values[9] = ACS_VLINE;
  acs_values[10] = ACS_PLUS;
  acs_values[11] = ACS_S1;
  acs_values[12] = ACS_S9;
  acs_values[13] = ACS_DIAMOND;
  acs_values[14] = ACS_CKBOARD;
  acs_values[15] = ACS_DEGREE;
  acs_values[16] = ACS_PLMINUS;
  acs_values[17] = ACS_BULLET;
  acs_values[18] = ACS_LARROW;
  acs_values[19] = ACS_RARROW;
  acs_values[20] = ACS_UARROW;
  acs_values[21] = ACS_DARROW;
  acs_values[22] = ACS_BOARD;
  acs_values[23] = ACS_LANTERN;
  acs_values[24] = ACS_BLOCK;
  for (i = 0; i < 25; i++) {
    move((i % 8) * 2 + tmarg, (i / 8) * (COLS / 4) + (COLS / 8 - 7));
    addch(acs_values[i]);
    printw(" %s", acs_names[i]);
  }
  mvaddstr(tmarg + 18, 3, "Press any key to continue");
  getch();
}


x86 assembly (clang, -O0):
<acsTest>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2e32(%rip),%rax
mov    (%rax),%eax
sub    $0x16,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x78(%rbp)
mov    0x2d8b(%rip),%rax
mov    (%rax),%edi
call   1060 <attrset@plt>
mov    -0x78(%rbp),%edi
mov    0x2dd2(%rip),%rax
mov    (%rax),%eax
sub    $0x17,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
lea    0xf55(%rip),%rdx
call   1070 <mvaddstr@plt>
mov    0x2e00(%rip),%rax
mov    (%rax),%edi
call   1060 <attrset@plt>
mov    -0x78(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x78(%rbp)
mov    0x2dc1(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x70(%rbp)
mov    0x2d6d(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x6c(%rbp)
mov    0x2d09(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x68(%rbp)
mov    0x2d7d(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x64(%rbp)
mov    0x2da9(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x60(%rbp)
mov    0x2cf5(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x5c(%rbp)
mov    0x2d09(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x58(%rbp)
mov    0x2d55(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x54(%rbp)
mov    0x2d11(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x50(%rbp)
mov    0x2ccd(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4c(%rbp)
mov    0x2cd1(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x48(%rbp)
mov    0x2d6d(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x44(%rbp)
mov    0x2d51(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x40(%rbp)
mov    0x2ced(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x3c(%rbp)
mov    0x2d59(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x38(%rbp)
mov    0x2d65(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x34(%rbp)
mov    0x2ca9(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    0x2d2d(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x2c(%rbp)
mov    0x2cd9(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x28(%rbp)
mov    0x2ce5(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
mov    0x2d31(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x20(%rbp)
mov    0x2c5d(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    0x2c79(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    0x2ca5(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
mov    0x2c41(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x10(%rbp)
movl   $0x0,-0x74(%rbp)
cmpl   $0x19,-0x74(%rbp)
jge    1392 <acsTest+0x232>
mov    -0x74(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    %edx,%edi
shl    $0x1,%edi
add    -0x78(%rbp),%edi
mov    -0x74(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
mov    0x2c3c(%rip),%rax
mov    (%rax),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
imul   %eax,%esi
mov    0x2c28(%rip),%rax
mov    (%rax),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
sub    $0x7,%eax
add    %eax,%esi
call   1080 <move@plt>
movslq -0x74(%rbp),%rax
mov    -0x70(%rbp,%rax,4),%edi
call   1040 <addch@plt>
movslq -0x74(%rbp),%rcx
lea    0x2cec(%rip),%rax
mov    (%rax,%rcx,8),%rsi
lea    0xda2(%rip),%rdi
call   1030 <printw@plt>
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
jmp    1303 <acsTest+0x1a3>
mov    -0x78(%rbp),%edi
add    $0x12,%edi
mov    $0x3,%esi
lea    0xd81(%rip),%rdx
call   1070 <mvaddstr@plt>
mov    $0x0,%al
call   1050 <getch@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<acsTest>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    0x2e33(%rip),%rax
mov    (%rax),%eax
mov    %eax,%ecx
add    $0xffffffea,%ecx
shr    $0x1f,%ecx
lea    (%rax,%rcx,1),%ebx
add    $0xffffffea,%ebx
sar    %ebx
mov    0x2d8a(%rip),%rax
mov    (%rax),%edi
call   1060 <attrset@plt>
mov    0x2dd4(%rip),%rax
mov    (%rax),%eax
mov    %eax,%ecx
add    $0xffffffe9,%ecx
shr    $0x1f,%ecx
lea    (%rax,%rcx,1),%esi
add    $0xffffffe9,%esi
sar    %esi
lea    0xfb8(%rip),%rdx
mov    %ebx,%edi
call   1070 <mvaddstr@plt>
mov    0x2dfd(%rip),%rax
mov    (%rax),%edi
call   1060 <attrset@plt>
mov    %rbx,0x70(%rsp)
lea    0x3(%rbx),%ebp
mov    0x2dbf(%rip),%rax
mov    (%rax),%eax
mov    %eax,(%rsp)
mov    0x2d6b(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x4(%rsp)
mov    0x2d06(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x8(%rsp)
mov    0x2d79(%rip),%rax
mov    (%rax),%eax
mov    %eax,0xc(%rsp)
mov    0x2da4(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x10(%rsp)
mov    0x2cef(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x14(%rsp)
mov    0x2d02(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x18(%rsp)
mov    0x2d4d(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x1c(%rsp)
mov    0x2d08(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x20(%rsp)
mov    0x2cc3(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x24(%rsp)
mov    0x2cc6(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x28(%rsp)
mov    0x2d61(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x2c(%rsp)
mov    0x2d44(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x30(%rsp)
mov    0x2cdf(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x34(%rsp)
mov    0x2d4a(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x38(%rsp)
mov    0x2d55(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x3c(%rsp)
mov    0x2c98(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x40(%rsp)
mov    0x2d1b(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x44(%rsp)
mov    0x2cc6(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x48(%rsp)
mov    0x2cd1(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x4c(%rsp)
mov    0x2d1c(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x50(%rsp)
mov    0x2c47(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x54(%rsp)
mov    0x2c62(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x58(%rsp)
mov    0x2c8d(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x5c(%rsp)
mov    0x2c28(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x60(%rsp)
lea    0xce3(%rip),%r14
xor    %ebx,%ebx
lea    0xe5f(%rip),%r13
mov    %r14,%r12
xor    %r15d,%r15d
nopl   0x0(%rax)
mov    %ebx,%edi
and    $0xe,%edi
add    %ebp,%edi
mov    %r15d,%eax
shr    $0x3,%eax
mov    0x2c2c(%rip),%rcx
mov    (%rcx),%ecx
lea    0x3(%rcx),%edx
lea    0x7(%rcx),%esi
test   %ecx,%ecx
cmovns %ecx,%edx
cmovns %ecx,%esi
sar    $0x2,%edx
imul   %eax,%edx
sar    $0x3,%esi
add    %edx,%esi
add    $0xfffffff9,%esi
call   1080 <move@plt>
mov    (%rsp,%r15,4),%edi
call   1040 <addch@plt>
movslq (%r12),%rsi
add    %r14,%rsi
mov    %r13,%rdi
call   1030 <printw@plt>
add    $0x1,%r15
add    $0x4,%r12
add    $0x2,%ebx
cmp    $0x19,%r15
jne    1330 <acsTest+0x1d0>
mov    0x70(%rsp),%rdi
add    $0x15,%edi
lea    0xdea(%rip),%rdx
mov    $0x3,%esi
call   1070 <mvaddstr@plt>
xor    %eax,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <getch@plt>

LLVM IR (-O0):
@acsTest.acs_names = internal global [25 x i8*] [i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.24, i32 0, i32 0)]
@.str = [13 x i8] c"ACS_ULCORNER\00"
@.str.1 = [13 x i8] c"ACS_URCORNER\00"
@.str.2 = [13 x i8] c"ACS_LLCORNER\00"
@.str.3 = [13 x i8] c"ACS_LRCORNER\00"
@.str.4 = [9 x i8] c"ACS_LTEE\00"
@.str.5 = [9 x i8] c"ACS_RTEE\00"
@.str.6 = [9 x i8] c"ACS_TTEE\00"
@.str.7 = [9 x i8] c"ACS_BTEE\00"
@.str.8 = [10 x i8] c"ACS_HLINE\00"
@.str.9 = [10 x i8] c"ACS_VLINE\00"
@.str.10 = [9 x i8] c"ACS_PLUS\00"
@.str.11 = [7 x i8] c"ACS_S1\00"
@.str.12 = [7 x i8] c"ACS_S9\00"
@.str.13 = [12 x i8] c"ACS_DIAMOND\00"
@.str.14 = [12 x i8] c"ACS_CKBOARD\00"
@.str.15 = [11 x i8] c"ACS_DEGREE\00"
@.str.16 = [12 x i8] c"ACS_PLMINUS\00"
@.str.17 = [11 x i8] c"ACS_BULLET\00"
@.str.18 = [11 x i8] c"ACS_LARROW\00"
@.str.19 = [11 x i8] c"ACS_RARROW\00"
@.str.20 = [11 x i8] c"ACS_UARROW\00"
@.str.21 = [11 x i8] c"ACS_DARROW\00"
@.str.22 = [10 x i8] c"ACS_BOARD\00"
@.str.23 = [12 x i8] c"ACS_LANTERN\00"
@.str.24 = [10 x i8] c"ACS_BLOCK\00"
@LINES = global i32 0
@A_BOLD = global i32 0
@COLS = global i32 0
@.str.25 = [24 x i8] c"Alternate Character Set\00"
@A_NORMAL = global i32 0
@ACS_ULCORNER = global i32 0
@ACS_URCORNER = global i32 0
@ACS_LLCORNER = global i32 0
@ACS_LRCORNER = global i32 0
@ACS_LTEE = global i32 0
@ACS_RTEE = global i32 0
@ACS_TTEE = global i32 0
@ACS_BTEE = global i32 0
@ACS_HLINE = global i32 0
@ACS_VLINE = global i32 0
@ACS_PLUS = global i32 0
@ACS_S1 = global i32 0
@ACS_S9 = global i32 0
@ACS_DIAMOND = global i32 0
@ACS_CKBOARD = global i32 0
@ACS_DEGREE = global i32 0
@ACS_PLMINUS = global i32 0
@ACS_BULLET = global i32 0
@ACS_LARROW = global i32 0
@ACS_RARROW = global i32 0
@ACS_UARROW = global i32 0
@ACS_DARROW = global i32 0
@ACS_BOARD = global i32 0
@ACS_LANTERN = global i32 0
@ACS_BLOCK = global i32 0
@.str.26 = [4 x i8] c" %s\00"
@.str.27 = [26 x i8] c"Press any key to continue\00"
define void @acsTest(i32* %0) {
%2 = alloca i32*
%3 = alloca [25 x i32]
%4 = alloca i32
%5 = alloca i32
store i32* %0, i32** %2
%6 = load i32, i32* @LINES
%7 = sub nsw i32 %6, 22
%8 = sdiv i32 %7, 2
store i32 %8, i32* %5
%9 = load i32, i32* @A_BOLD
%10 = call i32 @attrset(i32 %9)
%11 = load i32, i32* %5
%12 = load i32, i32* @COLS
%13 = sub nsw i32 %12, 23
%14 = sdiv i32 %13, 2
%15 = call i32 @mvaddstr(i32 %11, i32 %14, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.25, i64 0, i64 0))
%16 = load i32, i32* @A_NORMAL
%17 = call i32 @attrset(i32 %16)
%18 = load i32, i32* %5
%19 = add nsw i32 %18, 3
store i32 %19, i32* %5
%20 = load i32, i32* @ACS_ULCORNER
%21 = getelementptr inbounds [25 x i32], [25 x i32]* %3, i64 0, i64 0
store i32 %20, i32* %21
%22 = load i32, i32* @ACS_URCORNER
%23 = getelementptr inbounds [25 x i32], [25 x i32]* %3, i64 0, i64 1
store i32 %22, i32* %23
%24 = load i32, i32* @ACS_LLCORNER
%25 = getelementptr inbounds [25 x i32], [25 x i32]* %3, i64 0, i64 2
store i32 %24, i32* %25
%26 = load i32, i32* @ACS_LRCORNER
%27 = getelementptr inbounds [25 x i32], [25 x i32]* %3, i64 0, i64 3
store i32 %26, i32* %27
%28 = load i32, i32* @ACS_LTEE
%29 = getelementptr inbounds [25 x i32], [25 x i32]* %3, i64 0, i64 4
store i32 %28, i32* %29
%30 = load i32, i32* @ACS_RTEE
%31 = getelementptr inbounds [25 x i32], [25 x i32]* %3, i64 0, i64 5
store i32 %30, i32* %31
%32 = load i32, i32* @ACS_TTEE
%33 = getelementptr inbounds [25 x i32], [25 x i32]* %3, i64 0, i64 6
store i32 %32, i32* %33
%34 = load i32, i32* @ACS_BTEE
%35 = getelementptr inbounds [25 x i32], [25 x i32]* %3, i64 0, i64 7
store i32 %34, i32* %35
%36 = load i32, i32* @ACS_HLINE
%37 = getelementptr inbounds [25 x i32], [25 x i32]* %3, i64 0, i64 8
store i32 %36, i32* %37
%38 = load i32, i32* @ACS_VLINE
%39 = getelementptr inbounds [25 x i32], [25 x i32]* %3, i64 0, i64 9
store i32 %38, i32* %39
%40 = load i32, i32* @ACS_PLUS
%41 = getelementptr inbounds [25 x i32], [25 x i32]* %3, i64 0, i64 10
store i32 %40, i32* %41
%42 = load i32, i32* @ACS_S1
%43 = getelementptr inbounds [25 x i32], [25 x i32]* %3, i64 0, i64 11
store i32 %42, i32* %43
%44 = load i32, i32* @ACS_S9
%45 = getelementptr inbounds [25 x i32], [25 x i32]* %3, i64 0, i64 12
store i32 %44, i32* %45
%46 = load i32, i32* @ACS_DIAMOND
%47 = getelementptr inbounds [25 x i32], [25 x i32]* %3, i64 0, i64 13
store i32 %46, i32* %47
%48 = load i32, i32* @ACS_CKBOARD
%49 = getelementptr inbounds [25 x i32], [25 x i32]* %3, i64 0, i64 14
store i32 %48, i32* %49
%50 = load i32, i32* @ACS_DEGREE
%51 = getelementptr inbounds [25 x i32], [25 x i32]* %3, i64 0, i64 15
store i32 %50, i32* %51
%52 = load i32, i32* @ACS_PLMINUS
%53 = getelementptr inbounds [25 x i32], [25 x i32]* %3, i64 0, i64 16
store i32 %52, i32* %53
%54 = load i32, i32* @ACS_BULLET
%55 = getelementptr inbounds [25 x i32], [25 x i32]* %3, i64 0, i64 17
store i32 %54, i32* %55
%56 = load i32, i32* @ACS_LARROW
%57 = getelementptr inbounds [25 x i32], [25 x i32]* %3, i64 0, i64 18
store i32 %56, i32* %57
%58 = load i32, i32* @ACS_RARROW
%59 = getelementptr inbounds [25 x i32], [25 x i32]* %3, i64 0, i64 19
store i32 %58, i32* %59
%60 = load i32, i32* @ACS_UARROW
%61 = getelementptr inbounds [25 x i32], [25 x i32]* %3, i64 0, i64 20
store i32 %60, i32* %61
%62 = load i32, i32* @ACS_DARROW
%63 = getelementptr inbounds [25 x i32], [25 x i32]* %3, i64 0, i64 21
store i32 %62, i32* %63
%64 = load i32, i32* @ACS_BOARD
%65 = getelementptr inbounds [25 x i32], [25 x i32]* %3, i64 0, i64 22
store i32 %64, i32* %65
%66 = load i32, i32* @ACS_LANTERN
%67 = getelementptr inbounds [25 x i32], [25 x i32]* %3, i64 0, i64 23
store i32 %66, i32* %67
%68 = load i32, i32* @ACS_BLOCK
%69 = getelementptr inbounds [25 x i32], [25 x i32]* %3, i64 0, i64 24
store i32 %68, i32* %69
store i32 0, i32* %4
br label %70
70: ; preds = %99, %1
%71 = load i32, i32* %4
%72 = icmp slt i32 %71, 25
br i1 %72, label %73, label %102
73: ; preds = %70
%74 = load i32, i32* %4
%75 = srem i32 %74, 8
%76 = mul nsw i32 %75, 2
%77 = load i32, i32* %5
%78 = add nsw i32 %76, %77
%79 = load i32, i32* %4
%80 = sdiv i32 %79, 8
%81 = load i32, i32* @COLS
%82 = sdiv i32 %81, 4
%83 = mul nsw i32 %80, %82
%84 = load i32, i32* @COLS
%85 = sdiv i32 %84, 8
%86 = sub nsw i32 %85, 7
%87 = add nsw i32 %83, %86
%88 = call i32 @move(i32 %78, i32 %87)
%89 = load i32, i32* %4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [25 x i32], [25 x i32]* %3, i64 0, i64 %90
%92 = load i32, i32* %91
%93 = call i32 @addch(i32 %92)
%94 = load i32, i32* %4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [25 x i8*], [25 x i8*]* @acsTest.acs_names, i64 0, i64 %95
%97 = load i8*, i8** %96
%98 = call i32 @printw(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.26, i64 0, i64 0), i8* %97)
br label %99
99: ; preds = %73
%100 = load i32, i32* %4
%101 = add nsw i32 %100, 1
store i32 %101, i32* %4
br label %70
102: ; preds = %70
%103 = load i32, i32* %5
%104 = add nsw i32 %103, 18
%105 = call i32 @mvaddstr(i32 %104, i32 3, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.27, i64 0, i64 0))
%106 = call i32 (...) @getch()
ret void
}

LLVM IR (-O2):
@reltable.acsTest = internal unnamed_addr constant [25 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str to i64), i64 ptrtoint ([25 x i32]* @reltable.acsTest to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.1 to i64), i64 ptrtoint ([25 x i32]* @reltable.acsTest to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.2 to i64), i64 ptrtoint ([25 x i32]* @reltable.acsTest to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.3 to i64), i64 ptrtoint ([25 x i32]* @reltable.acsTest to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.4 to i64), i64 ptrtoint ([25 x i32]* @reltable.acsTest to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.5 to i64), i64 ptrtoint ([25 x i32]* @reltable.acsTest to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.6 to i64), i64 ptrtoint ([25 x i32]* @reltable.acsTest to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.7 to i64), i64 ptrtoint ([25 x i32]* @reltable.acsTest to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.8 to i64), i64 ptrtoint ([25 x i32]* @reltable.acsTest to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.9 to i64), i64 ptrtoint ([25 x i32]* @reltable.acsTest to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.10 to i64), i64 ptrtoint ([25 x i32]* @reltable.acsTest to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.11 to i64), i64 ptrtoint ([25 x i32]* @reltable.acsTest to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.12 to i64), i64 ptrtoint ([25 x i32]* @reltable.acsTest to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.13 to i64), i64 ptrtoint ([25 x i32]* @reltable.acsTest to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.14 to i64), i64 ptrtoint ([25 x i32]* @reltable.acsTest to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.15 to i64), i64 ptrtoint ([25 x i32]* @reltable.acsTest to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.16 to i64), i64 ptrtoint ([25 x i32]* @reltable.acsTest to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.17 to i64), i64 ptrtoint ([25 x i32]* @reltable.acsTest to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.18 to i64), i64 ptrtoint ([25 x i32]* @reltable.acsTest to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.19 to i64), i64 ptrtoint ([25 x i32]* @reltable.acsTest to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.20 to i64), i64 ptrtoint ([25 x i32]* @reltable.acsTest to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.21 to i64), i64 ptrtoint ([25 x i32]* @reltable.acsTest to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.22 to i64), i64 ptrtoint ([25 x i32]* @reltable.acsTest to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.23 to i64), i64 ptrtoint ([25 x i32]* @reltable.acsTest to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.24 to i64), i64 ptrtoint ([25 x i32]* @reltable.acsTest to i64)) to i32)]
@.str = [13 x i8] c"ACS_ULCORNER\00"
@.str.1 = [13 x i8] c"ACS_URCORNER\00"
@.str.2 = [13 x i8] c"ACS_LLCORNER\00"
@.str.3 = [13 x i8] c"ACS_LRCORNER\00"
@.str.4 = [9 x i8] c"ACS_LTEE\00"
@.str.5 = [9 x i8] c"ACS_RTEE\00"
@.str.6 = [9 x i8] c"ACS_TTEE\00"
@.str.7 = [9 x i8] c"ACS_BTEE\00"
@.str.8 = [10 x i8] c"ACS_HLINE\00"
@.str.9 = [10 x i8] c"ACS_VLINE\00"
@.str.10 = [9 x i8] c"ACS_PLUS\00"
@.str.11 = [7 x i8] c"ACS_S1\00"
@.str.12 = [7 x i8] c"ACS_S9\00"
@.str.13 = [12 x i8] c"ACS_DIAMOND\00"
@.str.14 = [12 x i8] c"ACS_CKBOARD\00"
@.str.15 = [11 x i8] c"ACS_DEGREE\00"
@.str.16 = [12 x i8] c"ACS_PLMINUS\00"
@.str.17 = [11 x i8] c"ACS_BULLET\00"
@.str.18 = [11 x i8] c"ACS_LARROW\00"
@.str.19 = [11 x i8] c"ACS_RARROW\00"
@.str.20 = [11 x i8] c"ACS_UARROW\00"
@.str.21 = [11 x i8] c"ACS_DARROW\00"
@.str.22 = [10 x i8] c"ACS_BOARD\00"
@.str.23 = [12 x i8] c"ACS_LANTERN\00"
@.str.24 = [10 x i8] c"ACS_BLOCK\00"
@LINES = global i32 0
@A_BOLD = global i32 0
@COLS = global i32 0
@.str.25 = [24 x i8] c"Alternate Character Set\00"
@A_NORMAL = global i32 0
@ACS_ULCORNER = global i32 0
@ACS_URCORNER = global i32 0
@ACS_LLCORNER = global i32 0
@ACS_LRCORNER = global i32 0
@ACS_LTEE = global i32 0
@ACS_RTEE = global i32 0
@ACS_TTEE = global i32 0
@ACS_BTEE = global i32 0
@ACS_HLINE = global i32 0
@ACS_VLINE = global i32 0
@ACS_PLUS = global i32 0
@ACS_S1 = global i32 0
@ACS_S9 = global i32 0
@ACS_DIAMOND = global i32 0
@ACS_CKBOARD = global i32 0
@ACS_DEGREE = global i32 0
@ACS_PLMINUS = global i32 0
@ACS_BULLET = global i32 0
@ACS_LARROW = global i32 0
@ACS_RARROW = global i32 0
@ACS_UARROW = global i32 0
@ACS_DARROW = global i32 0
@ACS_BOARD = global i32 0
@ACS_LANTERN = global i32 0
@ACS_BLOCK = global i32 0
@.str.26 = [4 x i8] c" %s\00"
@.str.27 = [26 x i8] c"Press any key to continue\00"
define void @acsTest(i32* nocapture readnone %0) {
%2 = alloca [25 x i32]
%3 = bitcast [25 x i32]* %2 to i8*
%4 = load i32, i32* @LINES
%5 = add nsw i32 %4, -22
%6 = sdiv i32 %5, 2
%7 = load i32, i32* @A_BOLD
%8 = tail call i32 @attrset(i32 %7)
%9 = load i32, i32* @COLS
%10 = add nsw i32 %9, -23
%11 = sdiv i32 %10, 2
%12 = tail call i32 @mvaddstr(i32 %6, i32 %11, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.25, i64 0, i64 0))
%13 = load i32, i32* @A_NORMAL
%14 = tail call i32 @attrset(i32 %13)
%15 = add nsw i32 %6, 3
%16 = load i32, i32* @ACS_ULCORNER
%17 = getelementptr inbounds [25 x i32], [25 x i32]* %2, i64 0, i64 0
store i32 %16, i32* %17
%18 = load i32, i32* @ACS_URCORNER
%19 = getelementptr inbounds [25 x i32], [25 x i32]* %2, i64 0, i64 1
store i32 %18, i32* %19
%20 = load i32, i32* @ACS_LLCORNER
%21 = getelementptr inbounds [25 x i32], [25 x i32]* %2, i64 0, i64 2
store i32 %20, i32* %21
%22 = load i32, i32* @ACS_LRCORNER
%23 = getelementptr inbounds [25 x i32], [25 x i32]* %2, i64 0, i64 3
store i32 %22, i32* %23
%24 = load i32, i32* @ACS_LTEE
%25 = getelementptr inbounds [25 x i32], [25 x i32]* %2, i64 0, i64 4
store i32 %24, i32* %25
%26 = load i32, i32* @ACS_RTEE
%27 = getelementptr inbounds [25 x i32], [25 x i32]* %2, i64 0, i64 5
store i32 %26, i32* %27
%28 = load i32, i32* @ACS_TTEE
%29 = getelementptr inbounds [25 x i32], [25 x i32]* %2, i64 0, i64 6
store i32 %28, i32* %29
%30 = load i32, i32* @ACS_BTEE
%31 = getelementptr inbounds [25 x i32], [25 x i32]* %2, i64 0, i64 7
store i32 %30, i32* %31
%32 = load i32, i32* @ACS_HLINE
%33 = getelementptr inbounds [25 x i32], [25 x i32]* %2, i64 0, i64 8
store i32 %32, i32* %33
%34 = load i32, i32* @ACS_VLINE
%35 = getelementptr inbounds [25 x i32], [25 x i32]* %2, i64 0, i64 9
store i32 %34, i32* %35
%36 = load i32, i32* @ACS_PLUS
%37 = getelementptr inbounds [25 x i32], [25 x i32]* %2, i64 0, i64 10
store i32 %36, i32* %37
%38 = load i32, i32* @ACS_S1
%39 = getelementptr inbounds [25 x i32], [25 x i32]* %2, i64 0, i64 11
store i32 %38, i32* %39
%40 = load i32, i32* @ACS_S9
%41 = getelementptr inbounds [25 x i32], [25 x i32]* %2, i64 0, i64 12
store i32 %40, i32* %41
%42 = load i32, i32* @ACS_DIAMOND
%43 = getelementptr inbounds [25 x i32], [25 x i32]* %2, i64 0, i64 13
store i32 %42, i32* %43
%44 = load i32, i32* @ACS_CKBOARD
%45 = getelementptr inbounds [25 x i32], [25 x i32]* %2, i64 0, i64 14
store i32 %44, i32* %45
%46 = load i32, i32* @ACS_DEGREE
%47 = getelementptr inbounds [25 x i32], [25 x i32]* %2, i64 0, i64 15
store i32 %46, i32* %47
%48 = load i32, i32* @ACS_PLMINUS
%49 = getelementptr inbounds [25 x i32], [25 x i32]* %2, i64 0, i64 16
store i32 %48, i32* %49
%50 = load i32, i32* @ACS_BULLET
%51 = getelementptr inbounds [25 x i32], [25 x i32]* %2, i64 0, i64 17
store i32 %50, i32* %51
%52 = load i32, i32* @ACS_LARROW
%53 = getelementptr inbounds [25 x i32], [25 x i32]* %2, i64 0, i64 18
store i32 %52, i32* %53
%54 = load i32, i32* @ACS_RARROW
%55 = getelementptr inbounds [25 x i32], [25 x i32]* %2, i64 0, i64 19
store i32 %54, i32* %55
%56 = load i32, i32* @ACS_UARROW
%57 = getelementptr inbounds [25 x i32], [25 x i32]* %2, i64 0, i64 20
store i32 %56, i32* %57
%58 = load i32, i32* @ACS_DARROW
%59 = getelementptr inbounds [25 x i32], [25 x i32]* %2, i64 0, i64 21
store i32 %58, i32* %59
%60 = load i32, i32* @ACS_BOARD
%61 = getelementptr inbounds [25 x i32], [25 x i32]* %2, i64 0, i64 22
store i32 %60, i32* %61
%62 = load i32, i32* @ACS_LANTERN
%63 = getelementptr inbounds [25 x i32], [25 x i32]* %2, i64 0, i64 23
store i32 %62, i32* %63
%64 = load i32, i32* @ACS_BLOCK
%65 = getelementptr inbounds [25 x i32], [25 x i32]* %2, i64 0, i64 24
store i32 %64, i32* %65
br label %66
66: ; preds = %1, %66
%67 = phi i64 [ 0, %1 ], [ %87, %66 ]
%68 = trunc i64 %67 to i32
%69 = shl i32 %68, 1
%70 = and i32 %69, 14
%71 = add nsw i32 %15, %70
%72 = trunc i64 %67 to i32
%73 = lshr i32 %72, 3
%74 = load i32, i32* @COLS
%75 = sdiv i32 %74, 4
%76 = mul nsw i32 %75, %73
%77 = sdiv i32 %74, 8
%78 = add nsw i32 %77, -7
%79 = add nsw i32 %78, %76
%80 = tail call i32 @move(i32 %71, i32 %79)
%81 = getelementptr inbounds [25 x i32], [25 x i32]* %2, i64 0, i64 %67
%82 = load i32, i32* %81
%83 = tail call i32 @addch(i32 %82)
%84 = shl i64 %67, 2
%85 = call i8* @llvm.load.relative.i64(i8* bitcast ([25 x i32]* @reltable.acsTest to i8*), i64 %84)
%86 = tail call i32 @printw(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.26, i64 0, i64 0), i8* %85)
%87 = add nuw nsw i64 %67, 1
%88 = icmp eq i64 %87, 25
br i1 %88, label %89, label %66
89: ; preds = %66
%90 = add nsw i32 %6, 21
%91 = tail call i32 @mvaddstr(i32 %90, i32 3, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.27, i64 0, i64 0))
%92 = tail call i32 (...) @getch()
ret void
}