#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 */

/* Variables and functions */
int BUFSIZ;
int atoi(char *);
int fgetl(int /*<<< orphan*/, int, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
int main(int argc, char *argv[]) {
  if (argc != 2) {
    fprintf(stderr, "usage: %s exc_mask < infile > outfile\n", argv[0]);
    fprintf(stderr, "  exc_mask is the mask of prohibited (at least one "
                    "character of ANY) types\n");
    fprintf(stderr,
            "  type masks: add together the numbers, i.e. lower + upper = 3\n");
    fprintf(stderr, "     LOWER 1\n");
    fprintf(stderr, "     UPPER 2\n");
    fprintf(stderr, "     DIGIT 4\n");
    fprintf(stderr,
            "     SYMBOL 8 (0x20 to 0x7e NOT IN lower, upper, digit)\n");
    fprintf(stderr, "     OTHER (tab, high ASCII, etc.) 16\n");
    return (-1);
  }
  int exc_mask = atoi(argv[1]);
  char line_buf[BUFSIZ];
  int line_len;
  while ((line_len = fgetl(stdin, BUFSIZ, line_buf)) != -1) {
    if (line_len == 0)
      continue;
    int cur_mask = 0;
    int p;
    for (p = 0; p < line_len; p++) {
      if ((line_buf[p] >= 'a') && (line_buf[p] <= 'z'))
        cur_mask |= (1 << 0);
      else if ((line_buf[p] >= 'A') && (line_buf[p] <= 'Z'))
        cur_mask |= (1 << 1);
      else if ((line_buf[p] >= '0') && (line_buf[p] <= '9'))
        cur_mask |= (1 << 2);
      else if ((line_buf[p] >= 0x20) && (line_buf[p] <= 0x7e))
        cur_mask |= (1 << 3);
      else
        cur_mask |= (1 << 4);
    }
    if (cur_mask & exc_mask)
      continue;
    puts(line_buf);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     122b <main+0xeb>
mov    0x2e71(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe89(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e53(%rip),%rax
mov    (%rax),%edi
lea    0xe99(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e3c(%rip),%rax
mov    (%rax),%edi
lea    0xece(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e25(%rip),%rax
mov    (%rax),%edi
lea    0xef7(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e0e(%rip),%rax
mov    (%rax),%edi
lea    0xeee(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2df7(%rip),%rax
mov    (%rax),%edi
lea    0xee5(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2de0(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2dc9(%rip),%rax
mov    (%rax),%edi
lea    0xefe(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13f2 <main+0x2b2>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1060 <atoi@plt>
mov    %eax,-0x14(%rbp)
mov    0x2d8e(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rcx
mov    %rcx,-0x20(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x40(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x28(%rbp)
mov    -0x40(%rbp),%rdx
mov    0x2d76(%rip),%rax
mov    (%rax),%edi
mov    0x2d55(%rip),%rax
mov    (%rax),%esi
call   1050 <fgetl@plt>
mov    %eax,-0x2c(%rbp)
cmp    $0xffffffff,%eax
je     13e4 <main+0x2a4>
cmpl   $0x0,-0x2c(%rbp)
jne    129d <main+0x15d>
jmp    1267 <main+0x127>
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    13c2 <main+0x282>
mov    -0x40(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x61,%eax
jl     12ef <main+0x1af>
mov    -0x40(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x7a,%eax
jg     12ef <main+0x1af>
mov    -0x30(%rbp),%eax
or     $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    13af <main+0x26f>
mov    -0x40(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x41,%eax
jl     1327 <main+0x1e7>
mov    -0x40(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x5a,%eax
jg     1327 <main+0x1e7>
mov    -0x30(%rbp),%eax
or     $0x2,%eax
mov    %eax,-0x30(%rbp)
jmp    13aa <main+0x26a>
mov    -0x40(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x30,%eax
jl     135f <main+0x21f>
mov    -0x40(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x39,%eax
jg     135f <main+0x21f>
mov    -0x30(%rbp),%eax
or     $0x4,%eax
mov    %eax,-0x30(%rbp)
jmp    13a5 <main+0x265>
mov    -0x40(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x20,%eax
jl     1397 <main+0x257>
mov    -0x40(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x7e,%eax
jg     1397 <main+0x257>
mov    -0x30(%rbp),%eax
or     $0x8,%eax
mov    %eax,-0x30(%rbp)
jmp    13a0 <main+0x260>
mov    -0x30(%rbp),%eax
or     $0x10,%eax
mov    %eax,-0x30(%rbp)
jmp    13a5 <main+0x265>
jmp    13aa <main+0x26a>
jmp    13af <main+0x26f>
jmp    13b4 <main+0x274>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12ab <main+0x16b>
mov    -0x30(%rbp),%eax
and    -0x14(%rbp),%eax
cmp    $0x0,%eax
je     13d6 <main+0x296>
jmp    1267 <main+0x127>
mov    -0x40(%rbp),%rdi
call   1030 <puts@plt>
jmp    1267 <main+0x127>
movl   $0x0,-0x4(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
cmp    $0x2,%edi
jne    152c <main+0x3ec>
mov    0x8(%rsi),%rdi
call   1060 <atoi@plt>
mov    %eax,%r14d
mov    %rsp,%r15
mov    0x2e63(%rip),%r12
mov    (%r12),%eax
mov    %rsp,%rbx
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
mov    0x2e5f(%rip),%r13
nopl   0x0(%rax)
mov    0x0(%r13),%edi
mov    (%r12),%esi
mov    %rbx,%rdx
call   1050 <fgetl@plt>
test   %eax,%eax
je     1190 <main+0x50>
cmp    $0xffffffff,%eax
je     15bd <main+0x47d>
test   %eax,%eax
jle    11c2 <main+0x82>
mov    %eax,%r8d
cmp    $0x8,%eax
jae    11c9 <main+0x89>
xor    %eax,%eax
xor    %edx,%edx
jmp    14eb <main+0x3ab>
xor    %edx,%edx
jmp    14c0 <main+0x380>
mov    %r8d,%eax
and    $0xfffffff8,%eax
pxor   %xmm8,%xmm8
xor    %edx,%edx
pxor   %xmm9,%xmm9
movdqa 0xe2c(%rip),%xmm13
pcmpeqd %xmm14,%xmm14
movdqa 0xece(%rip),%xmm15
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movq   (%rbx,%rdx,1),%xmm2
movd   0x4(%rbx,%rdx,1),%xmm10
movdqa %xmm2,%xmm0
movdqa 0xde8(%rip),%xmm3
paddb  %xmm3,%xmm0
movdqa %xmm0,%xmm1
pmaxub %xmm13,%xmm1
pcmpeqb %xmm0,%xmm1
pxor   %xmm14,%xmm1
punpcklbw %xmm1,%xmm0
punpcklwd %xmm0,%xmm0
movdqa %xmm10,%xmm1
paddb  %xmm3,%xmm1
movdqa %xmm1,%xmm3
pmaxub %xmm13,%xmm3
pcmpeqb %xmm1,%xmm3
pxor   %xmm14,%xmm3
punpcklbw %xmm3,%xmm1
punpcklwd %xmm1,%xmm1
movdqa %xmm2,%xmm3
movdqa 0xdbb(%rip),%xmm5
paddb  %xmm5,%xmm3
movdqa %xmm3,%xmm4
pmaxub %xmm13,%xmm4
pcmpeqb %xmm3,%xmm4
pxor   %xmm14,%xmm4
punpcklbw %xmm4,%xmm3
punpcklwd %xmm3,%xmm11
pand   %xmm0,%xmm11
movdqa %xmm10,%xmm0
paddb  %xmm5,%xmm0
movdqa %xmm0,%xmm4
pmaxub %xmm13,%xmm4
pcmpeqb %xmm0,%xmm4
pxor   %xmm14,%xmm4
punpcklbw %xmm4,%xmm0
punpcklwd %xmm0,%xmm4
pand   %xmm1,%xmm4
movdqa %xmm2,%xmm1
movdqa 0xd74(%rip),%xmm0
paddb  %xmm0,%xmm1
movdqa %xmm10,%xmm6
paddb  %xmm0,%xmm6
movdqa %xmm1,%xmm0
movdqa 0xd6b(%rip),%xmm3
pmaxub %xmm3,%xmm0
pcmpeqb %xmm1,%xmm0
movdqa %xmm6,%xmm1
pmaxub %xmm3,%xmm1
pcmpeqb %xmm6,%xmm1
movdqa %xmm2,%xmm5
movdqa 0xd5b(%rip),%xmm3
paddb  %xmm3,%xmm5
movdqa %xmm10,%xmm7
paddb  %xmm3,%xmm7
movdqa %xmm5,%xmm6
movdqa 0xd52(%rip),%xmm3
pmaxub %xmm3,%xmm6
pcmpeqb %xmm5,%xmm6
pxor   %xmm14,%xmm6
punpcklbw %xmm6,%xmm5
punpcklwd %xmm5,%xmm6
psrad  $0x18,%xmm6
movdqa %xmm7,%xmm5
pmaxub %xmm3,%xmm5
pcmpeqb %xmm7,%xmm5
pxor   %xmm14,%xmm5
punpcklbw %xmm5,%xmm5
punpcklwd %xmm5,%xmm7
psrad  $0x18,%xmm7
movdqa %xmm6,%xmm5
movdqa 0xd1e(%rip),%xmm3
pandn  %xmm3,%xmm5
movdqa 0xd21(%rip),%xmm12
pand   %xmm12,%xmm6
por    %xmm5,%xmm6
movdqa %xmm7,%xmm5
pandn  %xmm3,%xmm5
pand   %xmm12,%xmm7
por    %xmm5,%xmm7
punpcklbw %xmm0,%xmm5
punpcklwd %xmm5,%xmm5
psrad  $0x18,%xmm5
pxor   %xmm14,%xmm0
punpcklbw %xmm0,%xmm0
punpcklwd %xmm0,%xmm3
psrad  $0x18,%xmm3
psrad  $0x18,%xmm11
pand   %xmm11,%xmm3
pand   %xmm5,%xmm11
punpcklbw %xmm1,%xmm5
punpcklwd %xmm5,%xmm5
psrad  $0x18,%xmm5
pxor   %xmm14,%xmm1
punpcklbw %xmm1,%xmm1
punpcklwd %xmm1,%xmm1
psrad  $0x18,%xmm1
movdqa 0xcc1(%rip),%xmm0
paddb  %xmm0,%xmm2
paddb  %xmm0,%xmm10
psrad  $0x18,%xmm4
pand   %xmm4,%xmm1
pand   %xmm5,%xmm4
movdqa %xmm2,%xmm5
movdqa 0xcaf(%rip),%xmm0
pmaxub %xmm0,%xmm5
pcmpeqb %xmm2,%xmm5
pxor   %xmm14,%xmm5
punpcklbw %xmm5,%xmm5
punpcklwd %xmm5,%xmm5
movdqa 0xca1(%rip),%xmm12
pand   %xmm12,%xmm5
psubd  %xmm14,%xmm5
movdqa %xmm10,%xmm2
pmaxub %xmm0,%xmm2
pcmpeqb %xmm10,%xmm2
movdqa %xmm3,%xmm0
pandn  %xmm5,%xmm0
pxor   %xmm14,%xmm2
punpcklbw %xmm2,%xmm2
punpcklwd %xmm2,%xmm2
pand   %xmm12,%xmm2
psubd  %xmm14,%xmm2
pand   %xmm15,%xmm3
por    %xmm0,%xmm3
movdqa %xmm1,%xmm0
pandn  %xmm2,%xmm0
pand   %xmm15,%xmm1
por    %xmm0,%xmm1
pand   %xmm11,%xmm6
por    %xmm8,%xmm6
pandn  %xmm3,%xmm11
movdqa %xmm11,%xmm8
por    %xmm6,%xmm8
pand   %xmm4,%xmm7
por    %xmm9,%xmm7
pandn  %xmm1,%xmm4
movdqa %xmm4,%xmm9
por    %xmm7,%xmm9
add    $0x8,%rdx
cmp    %rdx,%rax
jne    1200 <main+0xc0>
por    %xmm8,%xmm9
pshufd $0xee,%xmm9,%xmm0
por    %xmm9,%xmm0
pshufd $0x55,%xmm0,%xmm1
por    %xmm0,%xmm1
movd   %xmm1,%edx
cmp    %r8,%rax
jne    14eb <main+0x3ab>
nop
test   %r14d,%edx
jne    1190 <main+0x50>
mov    %rbx,%rdi
call   1030 <puts@plt>
jmp    1190 <main+0x50>
cs nopw 0x0(%rax,%rax,1)
or     %edi,%edx
add    $0x1,%rax
cmp    %rax,%r8
je     14c0 <main+0x380>
movzbl (%rbx,%rax,1),%esi
lea    -0x61(%rsi),%ecx
mov    $0x1,%edi
cmp    $0x1a,%cl
jb     14e0 <main+0x3a0>
lea    -0x41(%rsi),%ecx
mov    $0x2,%edi
cmp    $0x1a,%cl
jb     14e0 <main+0x3a0>
lea    -0x30(%rsi),%ecx
mov    $0x4,%edi
cmp    $0xa,%cl
jb     14e0 <main+0x3a0>
add    $0x81,%sil
xor    %ecx,%ecx
cmp    $0xa1,%sil
setb   %cl
lea    0x8(,%rcx,8),%edi
jmp    14e0 <main+0x3a0>
mov    0x2aa5(%rip),%rbx
mov    (%rbx),%edi
mov    (%rsi),%rdx
lea    0xb91(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xba8(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xbe4(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xc14(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xc12(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xc10(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xc0e(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xc37(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0xffffffff,%eax
jmp    15c2 <main+0x482>
mov    %r15,%rsp
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [39 x i8] c"usage: %s exc_mask < infile > outfile\0A\00"
@.str.1 = [76 x i8] c" exc_mask is the mask of prohibited (at least one character of ANY) types\0A\00"
@.str.2 = [64 x i8] c" type masks: add together the numbers, i.e. lower + upper = 3\0A\00"
@.str.3 = [14 x i8] c" LOWER 1\0A\00"
@.str.4 = [14 x i8] c" UPPER 2\0A\00"
@.str.5 = [14 x i8] c" DIGIT 4\0A\00"
@.str.6 = [57 x i8] c" SYMBOL 8 (0x20 to 0x7e NOT IN lower, upper, digit)\0A\00"
@.str.7 = [39 x i8] c" OTHER (tab, high ASCII, etc.) 16\0A\00"
@BUFSIZ = global i32 0
@stdin = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i64
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = load i32, i32* %4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %34
14: ; preds = %2
%15 = load i32, i32* @stderr
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 0
%18 = load i8*, i8** %17
%19 = call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i8* %18)
%20 = load i32, i32* @stderr
%21 = call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.1, i64 0, i64 0))
%22 = load i32, i32* @stderr
%23 = call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.2, i64 0, i64 0))
%24 = load i32, i32* @stderr
%25 = call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%26 = load i32, i32* @stderr
%27 = call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%28 = load i32, i32* @stderr
%29 = call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%30 = load i32, i32* @stderr
%31 = call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.6, i64 0, i64 0))
%32 = load i32, i32* @stderr
%33 = call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0))
store i32 -1, i32* %3
br label %145
34: ; preds = %2
%35 = load i8**, i8*** %5
%36 = getelementptr inbounds i8*, i8** %35, i64 1
%37 = load i8*, i8** %36
%38 = call i32 @atoi(i8* %37)
store i32 %38, i32* %6
%39 = load i32, i32* @BUFSIZ
%40 = zext i32 %39 to i64
%41 = call i8* @llvm.stacksave()
store i8* %41, i8** %7
%42 = alloca i8, i64 %40
store i64 %40, i64* %8
br label %43
43: ; preds = %141, %140, %51, %34
%44 = load i32, i32* @stdin
%45 = load i32, i32* @BUFSIZ
%46 = call i32 @fgetl(i32 %44, i32 %45, i8* %42)
store i32 %46, i32* %9
%47 = icmp ne i32 %46, -1
br i1 %47, label %48, label %143
48: ; preds = %43
%49 = load i32, i32* %9
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %48
br label %43
52: ; preds = %48
store i32 0, i32* %10
store i32 0, i32* %11
br label %53
53: ; preds = %132, %52
%54 = load i32, i32* %11
%55 = load i32, i32* %9
%56 = icmp slt i32 %54, %55
br i1 %56, label %57, label %135
57: ; preds = %53
%58 = load i32, i32* %11
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, i8* %42, i64 %59
%61 = load i8, i8* %60
%62 = sext i8 %61 to i32
%63 = icmp sge i32 %62, 97
br i1 %63, label %64, label %74
64: ; preds = %57
%65 = load i32, i32* %11
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, i8* %42, i64 %66
%68 = load i8, i8* %67
%69 = sext i8 %68 to i32
%70 = icmp sle i32 %69, 122
br i1 %70, label %71, label %74
71: ; preds = %64
%72 = load i32, i32* %10
%73 = or i32 %72, 1
store i32 %73, i32* %10
br label %131
74: ; preds = %64, %57
%75 = load i32, i32* %11
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8, i8* %42, i64 %76
%78 = load i8, i8* %77
%79 = sext i8 %78 to i32
%80 = icmp sge i32 %79, 65
br i1 %80, label %81, label %91
81: ; preds = %74
%82 = load i32, i32* %11
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i8, i8* %42, i64 %83
%85 = load i8, i8* %84
%86 = sext i8 %85 to i32
%87 = icmp sle i32 %86, 90
br i1 %87, label %88, label %91
88: ; preds = %81
%89 = load i32, i32* %10
%90 = or i32 %89, 2
store i32 %90, i32* %10
br label %130
91: ; preds = %81, %74
%92 = load i32, i32* %11
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i8, i8* %42, i64 %93
%95 = load i8, i8* %94
%96 = sext i8 %95 to i32
%97 = icmp sge i32 %96, 48
br i1 %97, label %98, label %108
98: ; preds = %91
%99 = load i32, i32* %11
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i8, i8* %42, i64 %100
%102 = load i8, i8* %101
%103 = sext i8 %102 to i32
%104 = icmp sle i32 %103, 57
br i1 %104, label %105, label %108
105: ; preds = %98
%106 = load i32, i32* %10
%107 = or i32 %106, 4
store i32 %107, i32* %10
br label %129
108: ; preds = %98, %91
%109 = load i32, i32* %11
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, i8* %42, i64 %110
%112 = load i8, i8* %111
%113 = sext i8 %112 to i32
%114 = icmp sge i32 %113, 32
br i1 %114, label %115, label %125
115: ; preds = %108
%116 = load i32, i32* %11
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds i8, i8* %42, i64 %117
%119 = load i8, i8* %118
%120 = sext i8 %119 to i32
%121 = icmp sle i32 %120, 126
br i1 %121, label %122, label %125
122: ; preds = %115
%123 = load i32, i32* %10
%124 = or i32 %123, 8
store i32 %124, i32* %10
br label %128
125: ; preds = %115, %108
%126 = load i32, i32* %10
%127 = or i32 %126, 16
store i32 %127, i32* %10
br label %128
128: ; preds = %125, %122
br label %129
129: ; preds = %128, %105
br label %130
130: ; preds = %129, %88
br label %131
131: ; preds = %130, %71
br label %132
132: ; preds = %131
%133 = load i32, i32* %11
%134 = add nsw i32 %133, 1
store i32 %134, i32* %11
br label %53
135: ; preds = %53
%136 = load i32, i32* %10
%137 = load i32, i32* %6
%138 = and i32 %136, %137
%139 = icmp ne i32 %138, 0
br i1 %139, label %140, label %141
140: ; preds = %135
br label %43
141: ; preds = %135
%142 = call i32 @puts(i8* %42)
br label %43
143: ; preds = %43
store i32 0, i32* %3
%144 = load i8*, i8** %7
br label %145
145: ; preds = %143, %14
%146 = load i32, i32* %3
ret i32 %146
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [39 x i8] c"usage: %s exc_mask < infile > outfile\0A\00"
@.str.1 = [76 x i8] c" exc_mask is the mask of prohibited (at least one character of ANY) types\0A\00"
@.str.2 = [64 x i8] c" type masks: add together the numbers, i.e. lower + upper = 3\0A\00"
@.str.3 = [14 x i8] c" LOWER 1\0A\00"
@.str.4 = [14 x i8] c" UPPER 2\0A\00"
@.str.5 = [14 x i8] c" DIGIT 4\0A\00"
@.str.6 = [57 x i8] c" SYMBOL 8 (0x20 to 0x7e NOT IN lower, upper, digit)\0A\00"
@.str.7 = [39 x i8] c" OTHER (tab, high ASCII, etc.) 16\0A\00"
@BUFSIZ = global i32 0
@stdin = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 2
br i1 %3, label %22, label %4
4: ; preds = %2
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %1
%7 = tail call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = load i32, i32* @stderr
%9 = tail call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.1, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = tail call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.2, i64 0, i64 0))
%12 = load i32, i32* @stderr
%13 = tail call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%14 = load i32, i32* @stderr
%15 = tail call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%16 = load i32, i32* @stderr
%17 = tail call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%18 = load i32, i32* @stderr
%19 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.6, i64 0, i64 0))
%20 = load i32, i32* @stderr
%21 = tail call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0))
br label %128
22: ; preds = %2
%23 = getelementptr inbounds i8*, i8** %1, i64 1
%24 = load i8*, i8** %23
%25 = tail call i32 @atoi(i8* %24)
%26 = load i32, i32* @BUFSIZ
%27 = zext i32 %26 to i64
%28 = tail call i8* @llvm.stacksave()
%29 = alloca i8, i64 %27
br label %30
30: ; preds = %126, %22
%31 = load i32, i32* @stdin
%32 = load i32, i32* @BUFSIZ
%33 = call i32 @fgetl(i32 %31, i32 %32, i8* %29)
switch i32 %33, label %34 [
i32 -1, label %127
i32 0, label %126
]
34: ; preds = %30
%35 = icmp sgt i32 %33, 0
br i1 %35, label %36, label %120
36: ; preds = %34
%37 = zext i32 %33 to i64
%38 = icmp ult i32 %33, 8
br i1 %38, label %95, label %39
39: ; preds = %36
%40 = and i64 %37, 4294967288
br label %41
41: ; preds = %41, %39
%42 = phi i64 [ 0, %39 ], [ %89, %41 ]
%43 = phi <4 x i32> [ zeroinitializer, %39 ], [ %87, %41 ]
%44 = phi <4 x i32> [ zeroinitializer, %39 ], [ %88, %41 ]
%45 = getelementptr inbounds i8, i8* %29, i64 %42
%46 = bitcast i8* %45 to <4 x i8>*
%47 = load <4 x i8>, <4 x i8>* %46
%48 = getelementptr inbounds i8, i8* %45, i64 4
%49 = bitcast i8* %48 to <4 x i8>*
%50 = load <4 x i8>, <4 x i8>* %49
%51 = add <4 x i8> %47, <i8 -123, i8 -123, i8 -123, i8 -123>
%52 = icmp ult <4 x i8> %51, <i8 -26, i8 -26, i8 -26, i8 -26>
%53 = add <4 x i8> %50, <i8 -123, i8 -123, i8 -123, i8 -123>
%54 = icmp ult <4 x i8> %53, <i8 -26, i8 -26, i8 -26, i8 -26>
%55 = add <4 x i8> %47, <i8 -91, i8 -91, i8 -91, i8 -91>
%56 = icmp ult <4 x i8> %55, <i8 -26, i8 -26, i8 -26, i8 -26>
%57 = add <4 x i8> %50, <i8 -91, i8 -91, i8 -91, i8 -91>
%58 = icmp ult <4 x i8> %57, <i8 -26, i8 -26, i8 -26, i8 -26>
%59 = add <4 x i8> %47, <i8 -48, i8 -48, i8 -48, i8 -48>
%60 = add <4 x i8> %50, <i8 -48, i8 -48, i8 -48, i8 -48>
%61 = icmp ult <4 x i8> %59, <i8 10, i8 10, i8 10, i8 10>
%62 = icmp ult <4 x i8> %60, <i8 10, i8 10, i8 10, i8 10>
%63 = add <4 x i8> %47, <i8 -127, i8 -127, i8 -127, i8 -127>
%64 = add <4 x i8> %50, <i8 -127, i8 -127, i8 -127, i8 -127>
%65 = icmp ult <4 x i8> %63, <i8 -95, i8 -95, i8 -95, i8 -95>
%66 = icmp ult <4 x i8> %64, <i8 -95, i8 -95, i8 -95, i8 -95>
%67 = select <4 x i1> %65, <4 x i32> <i32 16, i32 16, i32 16, i32 16>, <4 x i32> <i32 8, i32 8, i32 8, i32 8>
%68 = select <4 x i1> %66, <4 x i32> <i32 16, i32 16, i32 16, i32 16>, <4 x i32> <i32 8, i32 8, i32 8, i32 8>
%69 = add <4 x i8> %47, <i8 -65, i8 -65, i8 -65, i8 -65>
%70 = icmp ult <4 x i8> %69, <i8 26, i8 26, i8 26, i8 26>
%71 = add <4 x i8> %50, <i8 -65, i8 -65, i8 -65, i8 -65>
%72 = icmp ult <4 x i8> %71, <i8 26, i8 26, i8 26, i8 26>
%73 = and <4 x i1> %52, %56
%74 = and <4 x i1> %54, %58
%75 = select <4 x i1> %73, <4 x i1> %61, <4 x i1> zeroinitializer
%76 = select <4 x i1> %74, <4 x i1> %62, <4 x i1> zeroinitializer
%77 = xor <4 x i1> %61, <i1 true, i1 true, i1 true, i1 true>
%78 = xor <4 x i1> %62, <i1 true, i1 true, i1 true, i1 true>
%79 = select <4 x i1> %73, <4 x i1> %77, <4 x i1> zeroinitializer
%80 = select <4 x i1> %74, <4 x i1> %78, <4 x i1> zeroinitializer
%81 = select <4 x i1> %70, <4 x i32> <i32 2, i32 2, i32 2, i32 2>, <4 x i32> <i32 1, i32 1, i32 1, i32 1>
%82 = select <4 x i1> %72, <4 x i32> <i32 2, i32 2, i32 2, i32 2>, <4 x i32> <i32 1, i32 1, i32 1, i32 1>
%83 = select <4 x i1> %75, <4 x i32> <i32 4, i32 4, i32 4, i32 4>, <4 x i32> %81
%84 = select <4 x i1> %76, <4 x i32> <i32 4, i32 4, i32 4, i32 4>, <4 x i32> %82
%85 = select <4 x i1> %79, <4 x i32> %67, <4 x i32> %83
%86 = select <4 x i1> %80, <4 x i32> %68, <4 x i32> %84
%87 = or <4 x i32> %43, %85
%88 = or <4 x i32> %44, %86
%89 = add nuw i64 %42, 8
%90 = icmp eq i64 %89, %40
br i1 %90, label %91, label %41
91: ; preds = %41
%92 = or <4 x i32> %88, %87
%93 = call i32 @llvm.vector.reduce.or.v4i32(<4 x i32> %92)
%94 = icmp eq i64 %40, %37
br i1 %94, label %120, label %95
95: ; preds = %36, %91
%96 = phi i64 [ 0, %36 ], [ %40, %91 ]
%97 = phi i32 [ 0, %36 ], [ %93, %91 ]
br label %98
98: ; preds = %95, %115
%99 = phi i64 [ %118, %115 ], [ %96, %95 ]
%100 = phi i32 [ %117, %115 ], [ %97, %95 ]
%101 = getelementptr inbounds i8, i8* %29, i64 %99
%102 = load i8, i8* %101
%103 = add i8 %102, -97
%104 = icmp ult i8 %103, 26
br i1 %104, label %115, label %105
105: ; preds = %98
%106 = add i8 %102, -65
%107 = icmp ult i8 %106, 26
br i1 %107, label %115, label %108
108: ; preds = %105
%109 = add i8 %102, -48
%110 = icmp ult i8 %109, 10
br i1 %110, label %115, label %111
111: ; preds = %108
%112 = add i8 %102, -127
%113 = icmp ult i8 %112, -95
%114 = select i1 %113, i32 16, i32 8
br label %115
115: ; preds = %111, %108, %105, %98
%116 = phi i32 [ 1, %98 ], [ 2, %105 ], [ 4, %108 ], [ %114, %111 ]
%117 = or i32 %100, %116
%118 = add nuw nsw i64 %99, 1
%119 = icmp eq i64 %118, %37
br i1 %119, label %120, label %98
120: ; preds = %115, %91, %34
%121 = phi i32 [ 0, %34 ], [ %93, %91 ], [ %117, %115 ]
%122 = and i32 %121, %25
%123 = icmp eq i32 %122, 0
br i1 %123, label %124, label %126
124: ; preds = %120
%125 = call i32 @puts(i8* %29)
br label %126
126: ; preds = %124, %120, %30
br label %30
127: ; preds = %30
br label %128
128: ; preds = %127, %4
%129 = phi i32 [ -1, %4 ], [ 0, %127 ]
ret i32 %129
}