#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 */
char ACS_BLOCK;
char ACS_BOARD;
char ACS_BTEE;
char ACS_BULLET;
char ACS_CKBOARD;
char ACS_DARROW;
char ACS_DEGREE;
char ACS_DIAMOND;
char ACS_GEQUAL;
char ACS_HLINE;
char ACS_LANTERN;
char ACS_LARROW;
char ACS_LEQUAL;
char ACS_LLCORNER;
char ACS_LRCORNER;
char ACS_LTEE;
char ACS_NEQUAL;
char ACS_PI;
char ACS_PLMINUS;
char ACS_PLUS;
char ACS_RARROW;
char ACS_RTEE;
char ACS_S1;
char ACS_S3;
char ACS_S7;
char ACS_S9;
char ACS_STERLING;
char ACS_TTEE;
char ACS_UARROW;
char ACS_ULCORNER;
char ACS_URCORNER;
char ACS_VLINE;
int /*<<< orphan*/ mvwprintw(int /*<<< orphan*/ *, int, int, char *, char);
void special_char_test(WINDOW *win, int y) {
  char *specials[] = {"Upper left corner         %c  ACS_ULCORNER\n",
                      "Lower left corner         %c  ACS_LLCORNER\n",
                      "Upper right corner        %c  ACS_URCORNER\n",
                      "Lower right corner        %c  ACS_LRCORNER\n",
                      "Tee pointing right        %c  ACS_LTEE\n",
                      "Tee pointing left         %c  ACS_RTEE\n",
                      "Tee pointing up           %c  ACS_BTEE\n",
                      "Tee pointing down         %c  ACS_TTEE\n",
                      "Horizontal line           %c  ACS_HLINE\n",
                      "Vertical line             %c  ACS_VLINE\n",
                      "Large Plus or cross over  %c  ACS_PLUS\n",
                      "Scan Line 1               %c  ACS_S1\n",
                      "Scan Line 3               %c  ACS_S3\n",
                      "Scan Line 7               %c  ACS_S7\n",
                      "Scan Line 9               %c  ACS_S9\n",
                      "Diamond                   %c  ACS_DIAMOND\n",
                      "Checker board (stipple)   %c  ACS_CKBOARD\n",
                      "Degree Symbol             %c  ACS_DEGREE\n",
                      "Plus/Minus Symbol         %c  ACS_PLMINUS\n",
                      "Bullet                    %c  ACS_BULLET\n",
                      "Arrow Pointing Left       %c  ACS_LARROW\n",
                      "Arrow Pointing Right      %c  ACS_RARROW\n",
                      "Arrow Pointing Down       %c  ACS_DARROW\n",
                      "Arrow Pointing Up         %c  ACS_UARROW\n",
                      "Board of squares          %c  ACS_BOARD\n",
                      "Lantern Symbol            %c  ACS_LANTERN\n",
                      "Solid Square Block        %c  ACS_BLOCK\n",
                      "Less/Equal sign           %c  ACS_LEQUAL\n",
                      "Greater/Equal sign        %c  ACS_GEQUAL\n",
                      "Pi                        %c  ACS_PI\n",
                      "Not equal                 %c  ACS_NEQUAL\n",
                      "UK pound sign             %c  ACS_STERLING\n"};
  char specialChar[] = {
      ACS_ULCORNER, ACS_LLCORNER, ACS_URCORNER, ACS_LRCORNER, ACS_LTEE,
      ACS_RTEE,     ACS_BTEE,     ACS_TTEE,     ACS_HLINE,    ACS_VLINE,
      ACS_PLUS,     ACS_S1,       ACS_S3,       ACS_S7,       ACS_S9,
      ACS_DIAMOND,  ACS_CKBOARD,  ACS_DEGREE,   ACS_PLMINUS,  ACS_BULLET,
      ACS_LARROW,   ACS_RARROW,   ACS_DARROW,   ACS_UARROW,   ACS_BOARD,
      ACS_LANTERN,  ACS_BLOCK,    ACS_LEQUAL,   ACS_LEQUAL,   ACS_GEQUAL,
      ACS_PI,       ACS_NEQUAL,   ACS_STERLING};
  int i = 0;
  for (i = 0; i < 23; ++i) {
    mvwprintw(win, i + 1, 1, specials[i + y], specialChar[i + y]);
  }
}


x86 assembly (clang, -O0):
<special_char_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x150,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
lea    -0x110(%rbp),%rdi
lea    0x2ae0(%rip),%rsi
mov    $0x100,%edx
call   2030 <memcpy@plt>
mov    0x2e3f(%rip),%rax
mov    (%rax),%al
mov    %al,-0x140(%rbp)
mov    0x2d80(%rip),%rax
mov    (%rax),%al
mov    %al,-0x13f(%rbp)
mov    0x2de1(%rip),%rax
mov    (%rax),%al
mov    %al,-0x13e(%rbp)
mov    0x2df2(%rip),%rax
mov    (%rax),%al
mov    %al,-0x13d(%rbp)
mov    0x2e1b(%rip),%rax
mov    (%rax),%al
mov    %al,-0x13c(%rbp)
mov    0x2d5c(%rip),%rax
mov    (%rax),%al
mov    %al,-0x13b(%rbp)
mov    0x2dcd(%rip),%rax
mov    (%rax),%al
mov    %al,-0x13a(%rbp)
mov    0x2d5e(%rip),%rax
mov    (%rax),%al
mov    %al,-0x139(%rbp)
mov    0x2d77(%rip),%rax
mov    (%rax),%al
mov    %al,-0x138(%rbp)
mov    0x2d30(%rip),%rax
mov    (%rax),%al
mov    %al,-0x137(%rbp)
mov    0x2d29(%rip),%rax
mov    (%rax),%al
mov    %al,-0x136(%rbp)
mov    0x2dc2(%rip),%rax
mov    (%rax),%al
mov    %al,-0x135(%rbp)
mov    0x2dc3(%rip),%rax
mov    (%rax),%al
mov    %al,-0x134(%rbp)
mov    0x2dc4(%rip),%rax
mov    (%rax),%al
mov    %al,-0x133(%rbp)
mov    0x2d8d(%rip),%rax
mov    (%rax),%al
mov    %al,-0x132(%rbp)
mov    0x2d2e(%rip),%rax
mov    (%rax),%al
mov    %al,-0x131(%rbp)
mov    0x2d8f(%rip),%rax
mov    (%rax),%al
mov    %al,-0x130(%rbp)
mov    0x2da0(%rip),%rax
mov    (%rax),%al
mov    %al,-0x12f(%rbp)
mov    0x2cd9(%rip),%rax
mov    (%rax),%al
mov    %al,-0x12e(%rbp)
mov    0x2d52(%rip),%rax
mov    (%rax),%al
mov    %al,-0x12d(%rbp)
mov    0x2d03(%rip),%rax
mov    (%rax),%al
mov    %al,-0x12c(%rbp)
mov    0x2d0c(%rip),%rax
mov    (%rax),%al
mov    %al,-0x12b(%rbp)
mov    0x2c8d(%rip),%rax
mov    (%rax),%al
mov    %al,-0x12a(%rbp)
mov    0x2d4e(%rip),%rax
mov    (%rax),%al
mov    %al,-0x129(%rbp)
mov    0x2c9f(%rip),%rax
mov    (%rax),%al
mov    %al,-0x128(%rbp)
mov    0x2cc0(%rip),%rax
mov    (%rax),%al
mov    %al,-0x127(%rbp)
mov    0x2c59(%rip),%rax
mov    (%rax),%al
mov    %al,-0x126(%rbp)
mov    0x2c02(%rip),%rax
mov    (%rax),%al
mov    %al,-0x125(%rbp)
mov    0x2bf3(%rip),%rax
mov    (%rax),%al
mov    %al,-0x124(%rbp)
mov    0x2c44(%rip),%rax
mov    (%rax),%al
mov    %al,-0x123(%rbp)
mov    0x2c8d(%rip),%rax
mov    (%rax),%al
mov    %al,-0x122(%rbp)
mov    0x2bfe(%rip),%rax
mov    (%rax),%al
mov    %al,-0x121(%rbp)
mov    0x2bcf(%rip),%rax
mov    (%rax),%al
mov    %al,-0x120(%rbp)
movl   $0x0,-0x144(%rbp)
movl   $0x0,-0x144(%rbp)
cmpl   $0x17,-0x144(%rbp)
jge    23ac <special_char_test+0x28c>
mov    -0x8(%rbp),%rdi
mov    -0x144(%rbp),%esi
add    $0x1,%esi
mov    -0x144(%rbp),%eax
add    -0xc(%rbp),%eax
cltq
mov    -0x110(%rbp,%rax,8),%rcx
ff
mov    -0x144(%rbp),%eax
add    -0xc(%rbp),%eax
cltq
mov    $0x1,%edx
movsbl -0x140(%rbp,%rax,1),%r8d
ff ff
call   2040 <mvwprintw@plt>
mov    -0x144(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x144(%rbp)
jmp    234d <special_char_test+0x22d>
add    $0x150,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<special_char_test>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x30,%rsp
mov    %rdi,%r14
mov    0x2e69(%rip),%rax
mov    (%rax),%al
mov    %al,(%rsp)
mov    0x2dad(%rip),%rax
mov    (%rax),%al
mov    %al,0x1(%rsp)
mov    0x2e10(%rip),%rax
mov    (%rax),%al
mov    %al,0x2(%rsp)
mov    0x2e23(%rip),%rax
mov    (%rax),%al
mov    %al,0x3(%rsp)
mov    0x2e4e(%rip),%rax
mov    (%rax),%al
mov    %al,0x4(%rsp)
mov    0x2d91(%rip),%rax
mov    (%rax),%al
mov    %al,0x5(%rsp)
mov    0x2e04(%rip),%rax
mov    (%rax),%al
mov    %al,0x6(%rsp)
mov    0x2d97(%rip),%rax
mov    (%rax),%al
mov    %al,0x7(%rsp)
mov    0x2db2(%rip),%rax
mov    (%rax),%al
mov    %al,0x8(%rsp)
mov    0x2d6d(%rip),%rax
mov    (%rax),%al
mov    %al,0x9(%rsp)
mov    0x2d68(%rip),%rax
mov    (%rax),%al
mov    %al,0xa(%rsp)
mov    0x2e03(%rip),%rax
mov    (%rax),%al
mov    %al,0xb(%rsp)
mov    0x2e06(%rip),%rax
mov    (%rax),%al
mov    %al,0xc(%rsp)
mov    0x2e09(%rip),%rax
mov    (%rax),%al
mov    %al,0xd(%rsp)
mov    0x2dd4(%rip),%rax
mov    (%rax),%al
mov    %al,0xe(%rsp)
mov    0x2d77(%rip),%rax
mov    (%rax),%al
mov    %al,0xf(%rsp)
mov    0x2dda(%rip),%rax
mov    (%rax),%al
mov    %al,0x10(%rsp)
mov    0x2ded(%rip),%rax
mov    (%rax),%al
mov    %al,0x11(%rsp)
mov    0x2d28(%rip),%rax
mov    (%rax),%al
mov    %al,0x12(%rsp)
mov    0x2da3(%rip),%rax
mov    (%rax),%al
mov    %al,0x13(%rsp)
mov    0x2d56(%rip),%rax
mov    (%rax),%al
mov    %al,0x14(%rsp)
mov    0x2d61(%rip),%rax
mov    (%rax),%al
mov    %al,0x15(%rsp)
mov    0x2ce4(%rip),%rax
mov    (%rax),%al
mov    %al,0x16(%rsp)
mov    0x2da7(%rip),%rax
mov    (%rax),%al
mov    %al,0x17(%rsp)
mov    0x2cfa(%rip),%rax
mov    (%rax),%al
mov    %al,0x18(%rsp)
mov    0x2d1d(%rip),%rax
mov    (%rax),%al
mov    %al,0x19(%rsp)
mov    0x2cb8(%rip),%rax
mov    (%rax),%al
mov    %al,0x1a(%rsp)
mov    0x2c63(%rip),%rax
mov    (%rax),%al
mov    %al,0x1b(%rsp)
mov    %al,0x1c(%rsp)
mov    0x2cb2(%rip),%rax
mov    (%rax),%al
mov    %al,0x1d(%rsp)
mov    0x2cfd(%rip),%rax
mov    (%rax),%al
mov    %al,0x1e(%rsp)
mov    0x2c70(%rip),%rax
mov    (%rax),%al
mov    %al,0x1f(%rsp)
mov    0x2c43(%rip),%rax
mov    (%rax),%al
mov    %al,0x20(%rsp)
movslq %esi,%rax
lea    0x125f(%rip),%r15
lea    (%r15,%rax,4),%r12
lea    (%rsp,%rax,1),%r13
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
lea    0x1(%rax),%rbx
movslq (%r12,%rax,4),%rcx
add    %r15,%rcx
movsbl 0x0(%r13,%rax,1),%r8d
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x1,%edx
call   1030 <mvwprintw@plt>
mov    %rbx,%rax
cmp    $0x17,%rbx
jne    12e0 <special_char_test+0x1d0>
add    $0x30,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [44 x i8] c"Upper left corner %c ACS_ULCORNER\0A\00"
@.str.1 = [44 x i8] c"Lower left corner %c ACS_LLCORNER\0A\00"
@.str.2 = [44 x i8] c"Upper right corner %c ACS_URCORNER\0A\00"
@.str.3 = [44 x i8] c"Lower right corner %c ACS_LRCORNER\0A\00"
@.str.4 = [40 x i8] c"Tee pointing right %c ACS_LTEE\0A\00"
@.str.5 = [40 x i8] c"Tee pointing left %c ACS_RTEE\0A\00"
@.str.6 = [40 x i8] c"Tee pointing up %c ACS_BTEE\0A\00"
@.str.7 = [40 x i8] c"Tee pointing down %c ACS_TTEE\0A\00"
@.str.8 = [41 x i8] c"Horizontal line %c ACS_HLINE\0A\00"
@.str.9 = [41 x i8] c"Vertical line %c ACS_VLINE\0A\00"
@.str.10 = [40 x i8] c"Large Plus or cross over %c ACS_PLUS\0A\00"
@.str.11 = [38 x i8] c"Scan Line 1 %c ACS_S1\0A\00"
@.str.12 = [38 x i8] c"Scan Line 3 %c ACS_S3\0A\00"
@.str.13 = [38 x i8] c"Scan Line 7 %c ACS_S7\0A\00"
@.str.14 = [38 x i8] c"Scan Line 9 %c ACS_S9\0A\00"
@.str.15 = [43 x i8] c"Diamond %c ACS_DIAMOND\0A\00"
@.str.16 = [43 x i8] c"Checker board (stipple) %c ACS_CKBOARD\0A\00"
@.str.17 = [42 x i8] c"Degree Symbol %c ACS_DEGREE\0A\00"
@.str.18 = [43 x i8] c"Plus/Minus Symbol %c ACS_PLMINUS\0A\00"
@.str.19 = [42 x i8] c"Bullet %c ACS_BULLET\0A\00"
@.str.20 = [42 x i8] c"Arrow Pointing Left %c ACS_LARROW\0A\00"
@.str.21 = [42 x i8] c"Arrow Pointing Right %c ACS_RARROW\0A\00"
@.str.22 = [42 x i8] c"Arrow Pointing Down %c ACS_DARROW\0A\00"
@.str.23 = [42 x i8] c"Arrow Pointing Up %c ACS_UARROW\0A\00"
@.str.24 = [41 x i8] c"Board of squares %c ACS_BOARD\0A\00"
@.str.25 = [43 x i8] c"Lantern Symbol %c ACS_LANTERN\0A\00"
@.str.26 = [41 x i8] c"Solid Square Block %c ACS_BLOCK\0A\00"
@.str.27 = [42 x i8] c"Less/Equal sign %c ACS_LEQUAL\0A\00"
@.str.28 = [42 x i8] c"Greater/Equal sign %c ACS_GEQUAL\0A\00"
@.str.29 = [38 x i8] c"Pi %c ACS_PI\0A\00"
@.str.30 = [42 x i8] c"Not equal %c ACS_NEQUAL\0A\00"
@.str.31 = [44 x i8] c"UK pound sign %c ACS_STERLING\0A\00"
@__const.special_char_test.specials = [32 x i8*] [i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.29, i32 0, i32 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.30, i32 0, i32 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.31, i32 0, i32 0)]
@ACS_ULCORNER = global i8 0
@ACS_LLCORNER = global i8 0
@ACS_URCORNER = global i8 0
@ACS_LRCORNER = global i8 0
@ACS_LTEE = global i8 0
@ACS_RTEE = global i8 0
@ACS_BTEE = global i8 0
@ACS_TTEE = global i8 0
@ACS_HLINE = global i8 0
@ACS_VLINE = global i8 0
@ACS_PLUS = global i8 0
@ACS_S1 = global i8 0
@ACS_S3 = global i8 0
@ACS_S7 = global i8 0
@ACS_S9 = global i8 0
@ACS_DIAMOND = global i8 0
@ACS_CKBOARD = global i8 0
@ACS_DEGREE = global i8 0
@ACS_PLMINUS = global i8 0
@ACS_BULLET = global i8 0
@ACS_LARROW = global i8 0
@ACS_RARROW = global i8 0
@ACS_DARROW = global i8 0
@ACS_UARROW = global i8 0
@ACS_BOARD = global i8 0
@ACS_LANTERN = global i8 0
@ACS_BLOCK = global i8 0
@ACS_LEQUAL = global i8 0
@ACS_GEQUAL = global i8 0
@ACS_PI = global i8 0
@ACS_NEQUAL = global i8 0
@ACS_STERLING = global i8 0
define void @special_char_test(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
%5 = alloca [32 x i8*]
%6 = alloca [33 x i8]
%7 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
%8 = bitcast [32 x i8*]* %5 to i8*
%9 = getelementptr inbounds [33 x i8], [33 x i8]* %6, i64 0, i64 0
%10 = load i8, i8* @ACS_ULCORNER
store i8 %10, i8* %9
%11 = getelementptr inbounds i8, i8* %9, i64 1
%12 = load i8, i8* @ACS_LLCORNER
store i8 %12, i8* %11
%13 = getelementptr inbounds i8, i8* %11, i64 1
%14 = load i8, i8* @ACS_URCORNER
store i8 %14, i8* %13
%15 = getelementptr inbounds i8, i8* %13, i64 1
%16 = load i8, i8* @ACS_LRCORNER
store i8 %16, i8* %15
%17 = getelementptr inbounds i8, i8* %15, i64 1
%18 = load i8, i8* @ACS_LTEE
store i8 %18, i8* %17
%19 = getelementptr inbounds i8, i8* %17, i64 1
%20 = load i8, i8* @ACS_RTEE
store i8 %20, i8* %19
%21 = getelementptr inbounds i8, i8* %19, i64 1
%22 = load i8, i8* @ACS_BTEE
store i8 %22, i8* %21
%23 = getelementptr inbounds i8, i8* %21, i64 1
%24 = load i8, i8* @ACS_TTEE
store i8 %24, i8* %23
%25 = getelementptr inbounds i8, i8* %23, i64 1
%26 = load i8, i8* @ACS_HLINE
store i8 %26, i8* %25
%27 = getelementptr inbounds i8, i8* %25, i64 1
%28 = load i8, i8* @ACS_VLINE
store i8 %28, i8* %27
%29 = getelementptr inbounds i8, i8* %27, i64 1
%30 = load i8, i8* @ACS_PLUS
store i8 %30, i8* %29
%31 = getelementptr inbounds i8, i8* %29, i64 1
%32 = load i8, i8* @ACS_S1
store i8 %32, i8* %31
%33 = getelementptr inbounds i8, i8* %31, i64 1
%34 = load i8, i8* @ACS_S3
store i8 %34, i8* %33
%35 = getelementptr inbounds i8, i8* %33, i64 1
%36 = load i8, i8* @ACS_S7
store i8 %36, i8* %35
%37 = getelementptr inbounds i8, i8* %35, i64 1
%38 = load i8, i8* @ACS_S9
store i8 %38, i8* %37
%39 = getelementptr inbounds i8, i8* %37, i64 1
%40 = load i8, i8* @ACS_DIAMOND
store i8 %40, i8* %39
%41 = getelementptr inbounds i8, i8* %39, i64 1
%42 = load i8, i8* @ACS_CKBOARD
store i8 %42, i8* %41
%43 = getelementptr inbounds i8, i8* %41, i64 1
%44 = load i8, i8* @ACS_DEGREE
store i8 %44, i8* %43
%45 = getelementptr inbounds i8, i8* %43, i64 1
%46 = load i8, i8* @ACS_PLMINUS
store i8 %46, i8* %45
%47 = getelementptr inbounds i8, i8* %45, i64 1
%48 = load i8, i8* @ACS_BULLET
store i8 %48, i8* %47
%49 = getelementptr inbounds i8, i8* %47, i64 1
%50 = load i8, i8* @ACS_LARROW
store i8 %50, i8* %49
%51 = getelementptr inbounds i8, i8* %49, i64 1
%52 = load i8, i8* @ACS_RARROW
store i8 %52, i8* %51
%53 = getelementptr inbounds i8, i8* %51, i64 1
%54 = load i8, i8* @ACS_DARROW
store i8 %54, i8* %53
%55 = getelementptr inbounds i8, i8* %53, i64 1
%56 = load i8, i8* @ACS_UARROW
store i8 %56, i8* %55
%57 = getelementptr inbounds i8, i8* %55, i64 1
%58 = load i8, i8* @ACS_BOARD
store i8 %58, i8* %57
%59 = getelementptr inbounds i8, i8* %57, i64 1
%60 = load i8, i8* @ACS_LANTERN
store i8 %60, i8* %59
%61 = getelementptr inbounds i8, i8* %59, i64 1
%62 = load i8, i8* @ACS_BLOCK
store i8 %62, i8* %61
%63 = getelementptr inbounds i8, i8* %61, i64 1
%64 = load i8, i8* @ACS_LEQUAL
store i8 %64, i8* %63
%65 = getelementptr inbounds i8, i8* %63, i64 1
%66 = load i8, i8* @ACS_LEQUAL
store i8 %66, i8* %65
%67 = getelementptr inbounds i8, i8* %65, i64 1
%68 = load i8, i8* @ACS_GEQUAL
store i8 %68, i8* %67
%69 = getelementptr inbounds i8, i8* %67, i64 1
%70 = load i8, i8* @ACS_PI
store i8 %70, i8* %69
%71 = getelementptr inbounds i8, i8* %69, i64 1
%72 = load i8, i8* @ACS_NEQUAL
store i8 %72, i8* %71
%73 = getelementptr inbounds i8, i8* %71, i64 1
%74 = load i8, i8* @ACS_STERLING
store i8 %74, i8* %73
store i32 0, i32* %7
store i32 0, i32* %7
br label %75
75: ; preds = %95, %2
%76 = load i32, i32* %7
%77 = icmp slt i32 %76, 23
br i1 %77, label %78, label %98
78: ; preds = %75
%79 = load i32*, i32** %3
%80 = load i32, i32* %7
%81 = add nsw i32 %80, 1
%82 = load i32, i32* %7
%83 = load i32, i32* %4
%84 = add nsw i32 %82, %83
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [32 x i8*], [32 x i8*]* %5, i64 0, i64 %85
%87 = load i8*, i8** %86
%88 = load i32, i32* %7
%89 = load i32, i32* %4
%90 = add nsw i32 %88, %89
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [33 x i8], [33 x i8]* %6, i64 0, i64 %91
%93 = load i8, i8* %92
%94 = call i32 @mvwprintw(i32* %79, i32 %81, i32 1, i8* %87, i8 signext %93)
br label %95
95: ; preds = %78
%96 = load i32, i32* %7
%97 = add nsw i32 %96, 1
store i32 %97, i32* %7
br label %75
98: ; preds = %75
ret void
}

LLVM IR (-O2):
@.str = [44 x i8] c"Upper left corner %c ACS_ULCORNER\0A\00"
@.str.1 = [44 x i8] c"Lower left corner %c ACS_LLCORNER\0A\00"
@.str.2 = [44 x i8] c"Upper right corner %c ACS_URCORNER\0A\00"
@.str.3 = [44 x i8] c"Lower right corner %c ACS_LRCORNER\0A\00"
@.str.4 = [40 x i8] c"Tee pointing right %c ACS_LTEE\0A\00"
@.str.5 = [40 x i8] c"Tee pointing left %c ACS_RTEE\0A\00"
@.str.6 = [40 x i8] c"Tee pointing up %c ACS_BTEE\0A\00"
@.str.7 = [40 x i8] c"Tee pointing down %c ACS_TTEE\0A\00"
@.str.8 = [41 x i8] c"Horizontal line %c ACS_HLINE\0A\00"
@.str.9 = [41 x i8] c"Vertical line %c ACS_VLINE\0A\00"
@.str.10 = [40 x i8] c"Large Plus or cross over %c ACS_PLUS\0A\00"
@.str.11 = [38 x i8] c"Scan Line 1 %c ACS_S1\0A\00"
@.str.12 = [38 x i8] c"Scan Line 3 %c ACS_S3\0A\00"
@.str.13 = [38 x i8] c"Scan Line 7 %c ACS_S7\0A\00"
@.str.14 = [38 x i8] c"Scan Line 9 %c ACS_S9\0A\00"
@.str.15 = [43 x i8] c"Diamond %c ACS_DIAMOND\0A\00"
@.str.16 = [43 x i8] c"Checker board (stipple) %c ACS_CKBOARD\0A\00"
@.str.17 = [42 x i8] c"Degree Symbol %c ACS_DEGREE\0A\00"
@.str.18 = [43 x i8] c"Plus/Minus Symbol %c ACS_PLMINUS\0A\00"
@.str.19 = [42 x i8] c"Bullet %c ACS_BULLET\0A\00"
@.str.20 = [42 x i8] c"Arrow Pointing Left %c ACS_LARROW\0A\00"
@.str.21 = [42 x i8] c"Arrow Pointing Right %c ACS_RARROW\0A\00"
@.str.22 = [42 x i8] c"Arrow Pointing Down %c ACS_DARROW\0A\00"
@.str.23 = [42 x i8] c"Arrow Pointing Up %c ACS_UARROW\0A\00"
@.str.24 = [41 x i8] c"Board of squares %c ACS_BOARD\0A\00"
@.str.25 = [43 x i8] c"Lantern Symbol %c ACS_LANTERN\0A\00"
@.str.26 = [41 x i8] c"Solid Square Block %c ACS_BLOCK\0A\00"
@.str.27 = [42 x i8] c"Less/Equal sign %c ACS_LEQUAL\0A\00"
@.str.28 = [42 x i8] c"Greater/Equal sign %c ACS_GEQUAL\0A\00"
@.str.29 = [38 x i8] c"Pi %c ACS_PI\0A\00"
@.str.30 = [42 x i8] c"Not equal %c ACS_NEQUAL\0A\00"
@.str.31 = [44 x i8] c"UK pound sign %c ACS_STERLING\0A\00"
@reltable.special_char_test = [32 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([44 x i8]* @.str to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([44 x i8]* @.str.1 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([44 x i8]* @.str.2 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([44 x i8]* @.str.3 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([40 x i8]* @.str.4 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([40 x i8]* @.str.5 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([40 x i8]* @.str.6 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([40 x i8]* @.str.7 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([41 x i8]* @.str.8 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([41 x i8]* @.str.9 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([40 x i8]* @.str.10 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([38 x i8]* @.str.11 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([38 x i8]* @.str.12 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([38 x i8]* @.str.13 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([38 x i8]* @.str.14 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([43 x i8]* @.str.15 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([43 x i8]* @.str.16 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([42 x i8]* @.str.17 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([43 x i8]* @.str.18 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([42 x i8]* @.str.19 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([42 x i8]* @.str.20 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([42 x i8]* @.str.21 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([42 x i8]* @.str.22 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([42 x i8]* @.str.23 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([41 x i8]* @.str.24 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([43 x i8]* @.str.25 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([41 x i8]* @.str.26 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([42 x i8]* @.str.27 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([42 x i8]* @.str.28 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([38 x i8]* @.str.29 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([42 x i8]* @.str.30 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([44 x i8]* @.str.31 to i64), i64 ptrtoint ([32 x i32]* @reltable.special_char_test to i64)) to i32)]
@ACS_ULCORNER = global i8 0
@ACS_LLCORNER = global i8 0
@ACS_URCORNER = global i8 0
@ACS_LRCORNER = global i8 0
@ACS_LTEE = global i8 0
@ACS_RTEE = global i8 0
@ACS_BTEE = global i8 0
@ACS_TTEE = global i8 0
@ACS_HLINE = global i8 0
@ACS_VLINE = global i8 0
@ACS_PLUS = global i8 0
@ACS_S1 = global i8 0
@ACS_S3 = global i8 0
@ACS_S7 = global i8 0
@ACS_S9 = global i8 0
@ACS_DIAMOND = global i8 0
@ACS_CKBOARD = global i8 0
@ACS_DEGREE = global i8 0
@ACS_PLMINUS = global i8 0
@ACS_BULLET = global i8 0
@ACS_LARROW = global i8 0
@ACS_RARROW = global i8 0
@ACS_DARROW = global i8 0
@ACS_UARROW = global i8 0
@ACS_BOARD = global i8 0
@ACS_LANTERN = global i8 0
@ACS_BLOCK = global i8 0
@ACS_LEQUAL = global i8 0
@ACS_GEQUAL = global i8 0
@ACS_PI = global i8 0
@ACS_NEQUAL = global i8 0
@ACS_STERLING = global i8 0
define void @special_char_test(i32* %0, i32 %1) {
%3 = alloca [33 x i8]
%4 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 0
%5 = load i8, i8* @ACS_ULCORNER
store i8 %5, i8* %4
%6 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 1
%7 = load i8, i8* @ACS_LLCORNER
store i8 %7, i8* %6
%8 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 2
%9 = load i8, i8* @ACS_URCORNER
store i8 %9, i8* %8
%10 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 3
%11 = load i8, i8* @ACS_LRCORNER
store i8 %11, i8* %10
%12 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 4
%13 = load i8, i8* @ACS_LTEE
store i8 %13, i8* %12
%14 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 5
%15 = load i8, i8* @ACS_RTEE
store i8 %15, i8* %14
%16 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 6
%17 = load i8, i8* @ACS_BTEE
store i8 %17, i8* %16
%18 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 7
%19 = load i8, i8* @ACS_TTEE
store i8 %19, i8* %18
%20 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 8
%21 = load i8, i8* @ACS_HLINE
store i8 %21, i8* %20
%22 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 9
%23 = load i8, i8* @ACS_VLINE
store i8 %23, i8* %22
%24 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 10
%25 = load i8, i8* @ACS_PLUS
store i8 %25, i8* %24
%26 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 11
%27 = load i8, i8* @ACS_S1
store i8 %27, i8* %26
%28 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 12
%29 = load i8, i8* @ACS_S3
store i8 %29, i8* %28
%30 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 13
%31 = load i8, i8* @ACS_S7
store i8 %31, i8* %30
%32 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 14
%33 = load i8, i8* @ACS_S9
store i8 %33, i8* %32
%34 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 15
%35 = load i8, i8* @ACS_DIAMOND
store i8 %35, i8* %34
%36 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 16
%37 = load i8, i8* @ACS_CKBOARD
store i8 %37, i8* %36
%38 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 17
%39 = load i8, i8* @ACS_DEGREE
store i8 %39, i8* %38
%40 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 18
%41 = load i8, i8* @ACS_PLMINUS
store i8 %41, i8* %40
%42 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 19
%43 = load i8, i8* @ACS_BULLET
store i8 %43, i8* %42
%44 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 20
%45 = load i8, i8* @ACS_LARROW
store i8 %45, i8* %44
%46 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 21
%47 = load i8, i8* @ACS_RARROW
store i8 %47, i8* %46
%48 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 22
%49 = load i8, i8* @ACS_DARROW
store i8 %49, i8* %48
%50 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 23
%51 = load i8, i8* @ACS_UARROW
store i8 %51, i8* %50
%52 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 24
%53 = load i8, i8* @ACS_BOARD
store i8 %53, i8* %52
%54 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 25
%55 = load i8, i8* @ACS_LANTERN
store i8 %55, i8* %54
%56 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 26
%57 = load i8, i8* @ACS_BLOCK
store i8 %57, i8* %56
%58 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 27
%59 = load i8, i8* @ACS_LEQUAL
store i8 %59, i8* %58
%60 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 28
store i8 %59, i8* %60
%61 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 29
%62 = load i8, i8* @ACS_GEQUAL
store i8 %62, i8* %61
%63 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 30
%64 = load i8, i8* @ACS_PI
store i8 %64, i8* %63
%65 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 31
%66 = load i8, i8* @ACS_NEQUAL
store i8 %66, i8* %65
%67 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 32
%68 = load i8, i8* @ACS_STERLING
store i8 %68, i8* %67
%69 = sext i32 %1 to i64
br label %70
70: ; preds = %2, %70
%71 = phi i64 [ 0, %2 ], [ %72, %70 ]
%72 = add nuw nsw i64 %71, 1
%73 = add nsw i64 %71, %69
%74 = shl i64 %73, 2
%75 = call i8* @llvm.load.relative.i64(i8* bitcast ([32 x i32]* @reltable.special_char_test to i8*), i64 %74)
%76 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 %73
%77 = load i8, i8* %76
%78 = trunc i64 %72 to i32
%79 = tail call i32 @mvwprintw(i32* %0, i32 %78, i32 1, i8* %75, i8 signext %77)
%80 = icmp eq i64 %72, 23
br i1 %80, label %81, label %70
81: ; preds = %70
ret void
}