#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*/ wint_t;
typedef scalar_t__ wchar_t;

/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ LC_ALL;
scalar_t__ *calloc(size_t, int);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
scalar_t__ iswalpha(scalar_t__);
scalar_t__ iswlower(scalar_t__);
scalar_t__ iswupper(scalar_t__);
size_t mbstowcs(scalar_t__ *, char *, size_t);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ *setlocale(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strlen(char *);
int main(int argc, char *argv[]) {
  size_t mbslen;
  wchar_t *wcs;
  wchar_t *wp;
  if (argc < 3) {
    fprintf(stderr, "Usage: %s <locale> <string>\n", argv[0]);
    exit(EXIT_FAILURE);
  }
  if (setlocale(LC_ALL, argv[1]) == NULL) {
    perror("setlocale");
    exit(EXIT_FAILURE);
  }
  mbslen = mbstowcs(NULL, argv[2], 0);
  if (mbslen == (size_t)-1) {
    perror("mbstowcs");
    exit(EXIT_FAILURE);
  }
  printf("Length of source string (excluding terminator):\n");
  printf("    %zu bytes\n", strlen(argv[2]));
  printf("    %zu multibyte characters\n\n", mbslen);
  wcs = calloc(mbslen + 1, sizeof(wchar_t));
  if (wcs == NULL) {
    perror("calloc");
    exit(EXIT_FAILURE);
  }
  if (mbstowcs(wcs, argv[2], mbslen + 1) == (size_t)-1) {
    perror("mbstowcs");
    exit(EXIT_FAILURE);
  }
  printf("Wide character string is: %ls (%zu characters)\n", wcs, mbslen);
  for (wp = wcs; *wp != 0; wp++) {
    printf("    %lc ", (wint_t)*wp);
    if (!iswalpha(*wp))
      printf("!");
    printf("alpha ");
    if (iswalpha(*wp)) {
      if (iswupper(*wp))
        printf("upper ");
      if (iswlower(*wp))
        printf("lower ");
    }
    putchar('\n');
  }
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
jge    120a <main+0x4a>
mov    0x2df9(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe09(%rip),%rsi
call   1090 <fprintf@plt>
mov    0x2dd5(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
mov    0x2db7(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
call   10b0 <setlocale@plt>
cmp    $0x0,%rax
jne    1244 <main+0x84>
lea    0xdec(%rip),%rdi
call   10d0 <perror@plt>
mov    0x2d9b(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
xor    %eax,%eax
mov    %eax,%edx
mov    %rdx,%rdi
call   1050 <mbstowcs@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0xffffffffffffffff,-0x18(%rbp)
jne    1281 <main+0xc1>
lea    0xdb9(%rip),%rdi
call   10d0 <perror@plt>
mov    0x2d5e(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
lea    0xda8(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1060 <strlen@plt>
mov    %eax,%esi
lea    0xdbc(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xdb9(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x18(%rbp),%rdi
add    $0x1,%rdi
mov    $0x8,%esi
call   1080 <calloc@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    12f9 <main+0x139>
lea    0xda9(%rip),%rdi
call   10d0 <perror@plt>
mov    0x2ce6(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
mov    -0x18(%rbp),%rdx
add    $0x1,%rdx
call   1050 <mbstowcs@plt>
cmp    $0xffffffffffffffff,%rax
jne    1336 <main+0x176>
lea    0xd04(%rip),%rdi
call   10d0 <perror@plt>
mov    0x2ca9(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
mov    -0x20(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xd51(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
cmpq   $0x0,(%rax)
je     1429 <main+0x269>
mov    -0x28(%rbp),%rax
mov    (%rax),%rax
mov    %eax,%esi
lea    0xd54(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x28(%rbp),%rax
mov    (%rax),%rdi
call   10c0 <iswalpha@plt>
cmp    $0x0,%rax
jne    139d <main+0x1dd>
lea    0xd39(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xd2d(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x28(%rbp),%rax
mov    (%rax),%rdi
call   10c0 <iswalpha@plt>
cmp    $0x0,%rax
je     140e <main+0x24e>
mov    -0x28(%rbp),%rax
mov    (%rax),%rdi
call   10a0 <iswupper@plt>
cmp    $0x0,%rax
je     13e5 <main+0x225>
lea    0xcfa(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x28(%rbp),%rax
mov    (%rax),%rdi
call   1030 <iswlower@plt>
cmp    $0x0,%rax
je     1409 <main+0x249>
lea    0xcdd(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    140e <main+0x24e>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    -0x28(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x28(%rbp)
jmp    1354 <main+0x194>
mov    0x2ba0(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %rsi,%r14
cmp    $0x2,%edi
jg     11fe <main+0x2e>
mov    0x2df8(%rip),%rax
mov    (%rax),%edi
mov    (%r14),%rdx
lea    0xe0c(%rip),%rsi
call   10a0 <fprintf@plt>
jmp    12b3 <main+0xe3>
mov    0x2dc3(%rip),%rax
mov    (%rax),%edi
mov    0x8(%r14),%rsi
call   10c0 <setlocale@plt>
test   %rax,%rax
jne    1221 <main+0x51>
lea    0xe01(%rip),%rdi
jmp    12ae <main+0xde>
mov    0x10(%r14),%rsi
xor    %edi,%edi
xor    %edx,%edx
call   1060 <mbstowcs@plt>
cmp    $0xffffffffffffffff,%rax
je     12a7 <main+0xd7>
mov    %rax,%r15
lea    0xe75(%rip),%rdi
call   1050 <puts@plt>
mov    0x10(%r14),%rdi
call   1070 <strlen@plt>
lea    0xddd(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xddc(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %r15,%r12
add    $0x1,%r12
mov    %r12,%rdi
mov    $0x8,%esi
call   1090 <calloc@plt>
test   %rax,%rax
jne    128f <main+0xbf>
lea    0xdd1(%rip),%rdi
jmp    12ae <main+0xde>
mov    %rax,%rbx
mov    0x10(%r14),%rsi
mov    %rax,%rdi
mov    %r12,%rdx
call   1060 <mbstowcs@plt>
cmp    $0xffffffffffffffff,%rax
jne    12c1 <main+0xf1>
lea    0xd79(%rip),%rdi
call   10e0 <perror@plt>
mov    0x2d1e(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>
lea    0xd9d(%rip),%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1080 <printf@plt>
mov    (%rbx),%rsi
test   %rsi,%rsi
jne    12eb <main+0x11b>
mov    0x2cec(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>
lea    0xda3(%rip),%r14
lea    0xda5(%rip),%r15
lea    0xdac(%rip),%r12
lea    0xd9e(%rip),%r13
jmp    1327 <main+0x157>
nopl   0x0(%rax)
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    0x8(%rbx),%rsi
add    $0x8,%rbx
test   %rsi,%rsi
je     12dd <main+0x10d>
mov    %r14,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    (%rbx),%rdi
call   10d0 <iswalpha@plt>
test   %rax,%rax
jne    1348 <main+0x178>
mov    $0x21,%edi
call   1040 <putchar@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    (%rbx),%rdi
call   10d0 <iswalpha@plt>
test   %rax,%rax
je     1310 <main+0x140>
mov    (%rbx),%rdi
call   10b0 <iswupper@plt>
test   %rax,%rax
je     1376 <main+0x1a6>
mov    %r13,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    (%rbx),%rdi
call   1030 <iswlower@plt>
test   %rax,%rax
je     1310 <main+0x140>
mov    %r12,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
jmp    1310 <main+0x140>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [29 x i8] c"Usage: %s <locale> <string>\0A\00"
@EXIT_FAILURE = global i32 0
@LC_ALL = global i32 0
@.str.1 = [10 x i8] c"setlocale\00"
@.str.2 = [9 x i8] c"mbstowcs\00"
@.str.3 = [49 x i8] c"Length of source string (excluding terminator):\0A\00"
@.str.4 = [15 x i8] c" %zu bytes\0A\00"
@.str.5 = [31 x i8] c" %zu multibyte characters\0A\0A\00"
@.str.6 = [7 x i8] c"calloc\00"
@.str.7 = [48 x i8] c"Wide character string is: %ls (%zu characters)\0A\00"
@.str.8 = [9 x i8] c" %lc \00"
@.str.9 = [2 x i8] c"!\00"
@.str.10 = [7 x i8] c"alpha \00"
@.str.11 = [7 x i8] c"upper \00"
@.str.12 = [7 x i8] c"lower \00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i64
%7 = alloca i64*
%8 = alloca i64*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = load i32, i32* %4
%10 = icmp slt i32 %9, 3
br i1 %10, label %11, label %19
11: ; preds = %2
%12 = load i32, i32* @stderr
%13 = load i8**, i8*** %5
%14 = getelementptr inbounds i8*, i8** %13, i64 0
%15 = load i8*, i8** %14
%16 = call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* %15)
%17 = load i32, i32* @EXIT_FAILURE
%18 = call i32 @exit(i32 %17)
unreachable
19: ; preds = %2
%20 = load i32, i32* @LC_ALL
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 1
%23 = load i8*, i8** %22
%24 = call i32* @setlocale(i32 %20, i8* %23)
%25 = icmp eq i32* %24, null
br i1 %25, label %26, label %30
26: ; preds = %19
%27 = call i32 @perror(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%28 = load i32, i32* @EXIT_FAILURE
%29 = call i32 @exit(i32 %28)
unreachable
30: ; preds = %19
%31 = load i8**, i8*** %5
%32 = getelementptr inbounds i8*, i8** %31, i64 2
%33 = load i8*, i8** %32
%34 = call i64 @mbstowcs(i64* null, i8* %33, i64 0)
store i64 %34, i64* %6
%35 = load i64, i64* %6
%36 = icmp eq i64 %35, -1
br i1 %36, label %37, label %41
37: ; preds = %30
%38 = call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%39 = load i32, i32* @EXIT_FAILURE
%40 = call i32 @exit(i32 %39)
unreachable
41: ; preds = %30
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.3, i64 0, i64 0))
%43 = load i8**, i8*** %5
%44 = getelementptr inbounds i8*, i8** %43, i64 2
%45 = load i8*, i8** %44
%46 = call i32 @strlen(i8* %45)
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32 %46)
%48 = load i64, i64* %6
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i64 %48)
%50 = load i64, i64* %6
%51 = add i64 %50, 1
%52 = call i64* @calloc(i64 %51, i32 8)
store i64* %52, i64** %7
%53 = load i64*, i64** %7
%54 = icmp eq i64* %53, null
br i1 %54, label %55, label %59
55: ; preds = %41
%56 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%57 = load i32, i32* @EXIT_FAILURE
%58 = call i32 @exit(i32 %57)
unreachable
59: ; preds = %41
%60 = load i64*, i64** %7
%61 = load i8**, i8*** %5
%62 = getelementptr inbounds i8*, i8** %61, i64 2
%63 = load i8*, i8** %62
%64 = load i64, i64* %6
%65 = add i64 %64, 1
%66 = call i64 @mbstowcs(i64* %60, i8* %63, i64 %65)
%67 = icmp eq i64 %66, -1
br i1 %67, label %68, label %72
68: ; preds = %59
%69 = call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%70 = load i32, i32* @EXIT_FAILURE
%71 = call i32 @exit(i32 %70)
unreachable
72: ; preds = %59
%73 = load i64*, i64** %7
%74 = load i64, i64* %6
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.7, i64 0, i64 0), i64* %73, i64 %74)
%76 = load i64*, i64** %7
store i64* %76, i64** %8
br label %77
77: ; preds = %115, %72
%78 = load i64*, i64** %8
%79 = load i64, i64* %78
%80 = icmp ne i64 %79, 0
br i1 %80, label %81, label %118
81: ; preds = %77
%82 = load i64*, i64** %8
%83 = load i64, i64* %82
%84 = trunc i64 %83 to i32
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %84)
%86 = load i64*, i64** %8
%87 = load i64, i64* %86
%88 = call i64 @iswalpha(i64 %87)
%89 = icmp ne i64 %88, 0
br i1 %89, label %92, label %90
90: ; preds = %81
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %92
92: ; preds = %90, %81
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
%94 = load i64*, i64** %8
%95 = load i64, i64* %94
%96 = call i64 @iswalpha(i64 %95)
%97 = icmp ne i64 %96, 0
br i1 %97, label %98, label %113
98: ; preds = %92
%99 = load i64*, i64** %8
%100 = load i64, i64* %99
%101 = call i64 @iswupper(i64 %100)
%102 = icmp ne i64 %101, 0
br i1 %102, label %103, label %105
103: ; preds = %98
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
br label %105
105: ; preds = %103, %98
%106 = load i64*, i64** %8
%107 = load i64, i64* %106
%108 = call i64 @iswlower(i64 %107)
%109 = icmp ne i64 %108, 0
br i1 %109, label %110, label %112
110: ; preds = %105
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
br label %112
112: ; preds = %110, %105
br label %113
113: ; preds = %112, %92
%114 = call i32 @putchar(i8 signext 10)
br label %115
115: ; preds = %113
%116 = load i64*, i64** %8
%117 = getelementptr inbounds i64, i64* %116, i32 1
store i64* %117, i64** %8
br label %77
118: ; preds = %77
%119 = load i32, i32* @EXIT_SUCCESS
%120 = call i32 @exit(i32 %119)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [29 x i8] c"Usage: %s <locale> <string>\0A\00"
@EXIT_FAILURE = global i32 0
@LC_ALL = global i32 0
@.str.1 = [10 x i8] c"setlocale\00"
@.str.2 = [9 x i8] c"mbstowcs\00"
@.str.4 = [15 x i8] c" %zu bytes\0A\00"
@.str.5 = [31 x i8] c" %zu multibyte characters\0A\0A\00"
@.str.6 = [7 x i8] c"calloc\00"
@.str.7 = [48 x i8] c"Wide character string is: %ls (%zu characters)\0A\00"
@.str.8 = [9 x i8] c" %lc \00"
@.str.10 = [7 x i8] c"alpha \00"
@.str.11 = [7 x i8] c"upper \00"
@.str.12 = [7 x i8] c"lower \00"
@EXIT_SUCCESS = global i32 0
@str = [48 x i8] c"Length of source string (excluding terminator):\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp slt i32 %0, 3
br i1 %3, label %4, label %10
4: ; preds = %2
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %1
%7 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = load i32, i32* @EXIT_FAILURE
%9 = tail call i32 @exit(i32 %8)
unreachable
10: ; preds = %2
%11 = load i32, i32* @LC_ALL
%12 = getelementptr inbounds i8*, i8** %1, i64 1
%13 = load i8*, i8** %12
%14 = tail call i32* @setlocale(i32 %11, i8* %13)
%15 = icmp eq i32* %14, null
br i1 %15, label %16, label %20
16: ; preds = %10
%17 = tail call i32 @perror(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%18 = load i32, i32* @EXIT_FAILURE
%19 = tail call i32 @exit(i32 %18)
unreachable
20: ; preds = %10
%21 = getelementptr inbounds i8*, i8** %1, i64 2
%22 = load i8*, i8** %21
%23 = tail call i64 @mbstowcs(i64* null, i8* %22, i64 0)
%24 = icmp eq i64 %23, -1
br i1 %24, label %25, label %29
25: ; preds = %20
%26 = tail call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%27 = load i32, i32* @EXIT_FAILURE
%28 = tail call i32 @exit(i32 %27)
unreachable
29: ; preds = %20
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str, i64 0, i64 0))
%31 = load i8*, i8** %21
%32 = tail call i32 @strlen(i8* %31)
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32 %32)
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i64 %23)
%35 = add nuw i64 %23, 1
%36 = tail call i64* @calloc(i64 %35, i32 8)
%37 = icmp eq i64* %36, null
br i1 %37, label %38, label %42
38: ; preds = %29
%39 = tail call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%40 = load i32, i32* @EXIT_FAILURE
%41 = tail call i32 @exit(i32 %40)
unreachable
42: ; preds = %29
%43 = load i8*, i8** %21
%44 = tail call i64 @mbstowcs(i64* %36, i8* %43, i64 %35)
%45 = icmp eq i64 %44, -1
br i1 %45, label %46, label %50
46: ; preds = %42
%47 = tail call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%48 = load i32, i32* @EXIT_FAILURE
%49 = tail call i32 @exit(i32 %48)
unreachable
50: ; preds = %42
%51 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.7, i64 0, i64 0), i64* %36, i64 %23)
%52 = load i64, i64* %36
%53 = icmp eq i64 %52, 0
br i1 %53, label %86, label %54
54: ; preds = %50, %81
%55 = phi i64 [ %84, %81 ], [ %52, %50 ]
%56 = phi i64* [ %83, %81 ], [ %36, %50 ]
%57 = trunc i64 %55 to i32
%58 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %57)
%59 = load i64, i64* %56
%60 = tail call i64 @iswalpha(i64 %59)
%61 = icmp eq i64 %60, 0
br i1 %61, label %62, label %64
62: ; preds = %54
%63 = tail call i32 bitcast (i32 (i8)* @putchar to i32 (i32)*)(i32 33)
br label %64
64: ; preds = %62, %54
%65 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
%66 = load i64, i64* %56
%67 = tail call i64 @iswalpha(i64 %66)
%68 = icmp eq i64 %67, 0
br i1 %68, label %81, label %69
69: ; preds = %64
%70 = load i64, i64* %56
%71 = tail call i64 @iswupper(i64 %70)
%72 = icmp eq i64 %71, 0
br i1 %72, label %75, label %73
73: ; preds = %69
%74 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
br label %75
75: ; preds = %73, %69
%76 = load i64, i64* %56
%77 = tail call i64 @iswlower(i64 %76)
%78 = icmp eq i64 %77, 0
br i1 %78, label %81, label %79
79: ; preds = %75
%80 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
br label %81
81: ; preds = %75, %79, %64
%82 = tail call i32 @putchar(i8 signext 10)
%83 = getelementptr inbounds i64, i64* %56, i64 1
%84 = load i64, i64* %83
%85 = icmp eq i64 %84, 0
br i1 %85, label %86, label %54
86: ; preds = %81, %50
%87 = load i32, i32* @EXIT_SUCCESS
%88 = tail call i32 @exit(i32 %87)
unreachable
}