#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 */
struct option {
  char *member_0;
  int *member_2;
  char member_3;
  int /*<<< orphan*/ member_1;
};

/* Variables and functions */
int EXIT_FAILURE;
int EXIT_SUCCESS;
int getopt_long(int, char **, char *, struct option *, int /*<<< orphan*/ *);
int is_utf8_mmap(char *, int, int, int, int);
int is_utf8_readline(int /*<<< orphan*/, char *, int, int, int, int);
int /*<<< orphan*/ no_argument;
int optind;
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ usage(char *);
int main(int ac, char **av) {
  int quiet = 0;
  int exit_value = EXIT_SUCCESS;
  int i;
  int list_only = 0;
  int invert = 0;
  int verbose = 0;
  int opt;
  struct option options[] = {{"help", no_argument, NULL, 'h'},
                             {"quiet", no_argument, &quiet, 1},
                             {"list-only", no_argument, &list_only, 1},
                             {"invert", no_argument, &invert, 1},
                             {"verbose", no_argument, &verbose, 1},
                             {0, 0, 0, 0}};
  while ((opt = getopt_long(ac, av, "hqliv", options, NULL)) != -1) {
    switch (opt) {
    case 0:
      break;
    case 'h':
      usage(av[0]);
      return EXIT_SUCCESS;
    case 'q':
      quiet = 1;
      break;
    case 'l':
      list_only = 1;
      break;
    case 'i':
      invert = 1;
      break;
    case 'v':
      verbose = 1;
      break;
    case '?':
      usage(av[0]);
      return EXIT_FAILURE;
    default:
      usage(av[0]);
      return EXIT_FAILURE;
    }
  }
  if (optind == ac) {
    return is_utf8_readline(stdin, "(standard input)", quiet, verbose,
                            list_only, invert);
  } else {
    for (i = optind; i < ac; ++i) {
      if (is_utf8_mmap(av[i], quiet, verbose, list_only, invert) ==
          EXIT_FAILURE)
        exit_value = EXIT_FAILURE;
    }
    return exit_value;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    0x2e49(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
lea    -0xc0(%rbp),%rdi
lea    0xe61(%rip),%rax
mov    %rax,-0xc0(%rbp)
mov    0x2e23(%rip),%rax
movslq (%rax),%rax
mov    %rax,-0xb8(%rbp)
movb   $0x0,-0xb0(%rbp)
movl   $0x68,-0xac(%rbp)
add    $0x18,%rdi
lea    0xe32(%rip),%rax
mov    %rax,-0xa8(%rbp)
mov    0x2def(%rip),%rax
movslq (%rax),%rax
mov    %rax,-0xa0(%rbp)
lea    -0x14(%rbp),%rax
mov    %al,-0x98(%rbp)
movl   $0x1,-0x94(%rbp)
add    $0x18,%rdi
lea    0xe01(%rip),%rax
mov    %rax,-0x90(%rbp)
mov    0x2db8(%rip),%rax
movslq (%rax),%rax
mov    %rax,-0x88(%rbp)
lea    -0x20(%rbp),%rax
mov    %al,-0x80(%rbp)
movl   $0x1,-0x7c(%rbp)
add    $0x18,%rdi
lea    0xdda(%rip),%rax
mov    %rax,-0x78(%rbp)
mov    0x2d8a(%rip),%rax
movslq (%rax),%rax
mov    %rax,-0x70(%rbp)
lea    -0x24(%rbp),%rax
mov    %al,-0x68(%rbp)
movl   $0x1,-0x64(%rbp)
add    $0x18,%rdi
lea    0xdb6(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0x2d5f(%rip),%rax
movslq (%rax),%rax
mov    %rax,-0x58(%rbp)
lea    -0x28(%rbp),%rax
mov    %al,-0x50(%rbp)
movl   $0x1,-0x4c(%rbp)
add    $0x18,%rdi
xor    %esi,%esi
mov    $0x18,%edx
call   1050 <memset@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    -0xc0(%rbp),%rcx
lea    0xd79(%rip),%rdx
xor    %eax,%eax
mov    %eax,%r8d
call   1040 <getopt_long@plt>
mov    %eax,-0x2c(%rbp)
cmp    $0xffffffff,%eax
je     13e0 <main+0x290>
mov    -0x2c(%rbp),%eax
mov    %eax,-0xc4(%rbp)
test   %eax,%eax
je     134f <main+0x1ff>
jmp    12d7 <main+0x187>
mov    -0xc4(%rbp),%eax
sub    $0x3f,%eax
je     13a1 <main+0x251>
jmp    12eb <main+0x19b>
mov    -0xc4(%rbp),%eax
sub    $0x68,%eax
je     1354 <main+0x204>
jmp    12ff <main+0x1af>
mov    -0xc4(%rbp),%eax
sub    $0x69,%eax
je     1389 <main+0x239>
jmp    1313 <main+0x1c3>
mov    -0xc4(%rbp),%eax
sub    $0x6c,%eax
je     137d <main+0x22d>
jmp    1327 <main+0x1d7>
mov    -0xc4(%rbp),%eax
sub    $0x71,%eax
je     1371 <main+0x221>
jmp    133b <main+0x1eb>
mov    -0xc4(%rbp),%eax
sub    $0x76,%eax
je     1395 <main+0x245>
jmp    13be <main+0x26e>
jmp    13db <main+0x28b>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1070 <usage@plt>
mov    0x2c59(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1487 <main+0x337>
movl   $0x1,-0x14(%rbp)
jmp    13db <main+0x28b>
movl   $0x1,-0x20(%rbp)
jmp    13db <main+0x28b>
movl   $0x1,-0x24(%rbp)
jmp    13db <main+0x28b>
movl   $0x1,-0x28(%rbp)
jmp    13db <main+0x28b>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1070 <usage@plt>
mov    0x2c14(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1487 <main+0x337>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1070 <usage@plt>
mov    0x2bf7(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1487 <main+0x337>
jmp    1296 <main+0x146>
mov    0x2bf9(%rip),%rax
mov    (%rax),%eax
cmp    -0x8(%rbp),%eax
jne    141d <main+0x2cd>
mov    0x2bef(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%edx
mov    -0x28(%rbp),%ecx
mov    -0x20(%rbp),%r8d
mov    -0x24(%rbp),%r9d
lea    0xc1a(%rip),%rsi
call   1060 <is_utf8_readline@plt>
mov    %eax,-0x4(%rbp)
jmp    1487 <main+0x337>
mov    0x2bbc(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1481 <main+0x331>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x14(%rbp),%esi
mov    -0x28(%rbp),%edx
mov    -0x20(%rbp),%ecx
mov    -0x24(%rbp),%r8d
call   1030 <is_utf8_mmap@plt>
mov    0x2b6e(%rip),%rcx
cmp    (%rcx),%eax
jne    146e <main+0x31e>
mov    0x2b5f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
jmp    1473 <main+0x323>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1429 <main+0x2d9>
mov    -0x18(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    %rsi,%rbp
mov    %edi,%r15d
movl   $0x0,0xc(%rsp)
mov    0x2e5a(%rip),%rax
mov    (%rax),%r14d
movl   $0x0,0x8(%rsp)
movl   $0x0,0x4(%rsp)
movl   $0x0,(%rsp)
lea    0xf59(%rip),%rax
mov    %rax,0x10(%rsp)
mov    0x2e3d(%rip),%rax
movslq (%rax),%rax
mov    %rax,0x18(%rsp)
movb   $0x0,0x20(%rsp)
movl   $0x68,0x24(%rsp)
lea    0xf36(%rip),%rcx
mov    %rcx,0x28(%rsp)
mov    %rax,0x30(%rsp)
lea    0xc(%rsp),%rcx
mov    %cl,0x38(%rsp)
movl   $0x1,0x3c(%rsp)
lea    0xf1a(%rip),%rcx
mov    %rcx,0x40(%rsp)
mov    %rax,0x48(%rsp)
lea    0x8(%rsp),%rcx
mov    %cl,0x50(%rsp)
movl   $0x1,0x54(%rsp)
lea    0xf02(%rip),%rcx
mov    %rcx,0x58(%rsp)
mov    %rax,0x60(%rsp)
lea    0x4(%rsp),%rcx
mov    %cl,0x68(%rsp)
movl   $0x1,0x6c(%rsp)
lea    0xee7(%rip),%rcx
mov    %rcx,0x70(%rsp)
mov    %rax,0x78(%rsp)
mov    %rsp,%rax
mov    %al,0x80(%rsp)
movl   $0x1,0x84(%rsp)
xorps  %xmm0,%xmm0
movups %xmm0,0x88(%rsp)
movq   $0x0,0x98(%rsp)
lea    0xeb2(%rip),%r12
lea    0x10(%rsp),%rbx
lea    0xda2(%rip),%r13
jmp    1270 <main+0x130>
movl   $0x1,(%rsp)
nopw   0x0(%rax,%rax,1)
mov    %r15d,%edi
mov    %rbp,%rsi
mov    %r12,%rdx
mov    %rbx,%rcx
xor    %r8d,%r8d
call   1040 <getopt_long@plt>
lea    -0x3f(%rax),%ecx
cmp    $0x37,%ecx
ja     12a0 <main+0x160>
movslq 0x0(%r13,%rcx,4),%rax
add    %r13,%rax
jmp    *%rax
movl   $0x1,0x4(%rsp)
jmp    1270 <main+0x130>
test   %eax,%eax
je     1270 <main+0x130>
jmp    12ba <main+0x17a>
movl   $0x1,0x8(%rsp)
jmp    1270 <main+0x130>
movl   $0x1,0xc(%rsp)
jmp    1270 <main+0x130>
cmp    $0xffffffff,%eax
jne    12f9 <main+0x1b9>
mov    0x2d1a(%rip),%rax
movslq (%rax),%rax
cmp    %r15d,%eax
jne    1333 <main+0x1f3>
mov    0x2d13(%rip),%rax
mov    (%rax),%edi
mov    0xc(%rsp),%edx
mov    (%rsp),%ecx
mov    0x8(%rsp),%r8d
mov    0x4(%rsp),%r9d
lea    0xe1b(%rip),%rsi
call   1050 <is_utf8_readline@plt>
mov    %eax,%r14d
jmp    131e <main+0x1de>
mov    0x0(%rbp),%rdi
call   1060 <usage@plt>
mov    0x2cbf(%rip),%rax
jmp    131b <main+0x1db>
mov    0x0(%rbp),%rdi
call   1060 <usage@plt>
mov    0x2ca5(%rip),%rax
mov    (%rax),%r14d
mov    %r14d,%eax
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
cmp    %r15d,%eax
jge    131e <main+0x1de>
lea    0x0(,%rax,8),%rbx
add    %rbp,%rbx
sub    %eax,%r15d
xor    %ebp,%ebp
mov    0x2c79(%rip),%r12
nop
mov    (%rbx,%rbp,8),%rdi
mov    0xc(%rsp),%esi
mov    (%rsp),%edx
mov    0x8(%rsp),%ecx
mov    0x4(%rsp),%r8d
call   1030 <is_utf8_mmap@plt>
mov    (%r12),%ecx
cmp    %ecx,%eax
cmove  %ecx,%r14d
add    $0x1,%rbp
cmp    %ebp,%r15d
jne    1350 <main+0x210>
jmp    131e <main+0x1de>

LLVM IR (-O0):
%struct.option = type { i8*, i32*, i8, i32 }
@EXIT_SUCCESS = global i32 0
@.str = [5 x i8] c"help\00"
@no_argument = global i32 0
@.str.1 = [6 x i8] c"quiet\00"
@.str.2 = [10 x i8] c"list-only\00"
@.str.3 = [7 x i8] c"invert\00"
@.str.4 = [8 x i8] c"verbose\00"
@.str.5 = [6 x i8] c"hqliv\00"
@EXIT_FAILURE = global i32 0
@optind = global i32 0
@stdin = global i32 0
@.str.6 = [17 x i8] c"(standard input)\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca [6 x %struct.option]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
%14 = load i32, i32* @EXIT_SUCCESS
store i32 %14, i32* %7
store i32 0, i32* %9
store i32 0, i32* %10
store i32 0, i32* %11
%15 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %13, i64 0, i64 0
%16 = getelementptr inbounds %struct.option, %struct.option* %15, i32 0, i32 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8** %16
%17 = getelementptr inbounds %struct.option, %struct.option* %15, i32 0, i32 1
%18 = load i32, i32* @no_argument
%19 = sext i32 %18 to i64
%20 = inttoptr i64 %19 to i32*
store i32* %20, i32** %17
%21 = getelementptr inbounds %struct.option, %struct.option* %15, i32 0, i32 2
store i8 0, i8* %21
%22 = getelementptr inbounds %struct.option, %struct.option* %15, i32 0, i32 3
store i32 104, i32* %22
%23 = getelementptr inbounds %struct.option, %struct.option* %15, i64 1
%24 = getelementptr inbounds %struct.option, %struct.option* %23, i32 0, i32 0
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8** %24
%25 = getelementptr inbounds %struct.option, %struct.option* %23, i32 0, i32 1
%26 = load i32, i32* @no_argument
%27 = sext i32 %26 to i64
%28 = inttoptr i64 %27 to i32*
store i32* %28, i32** %25
%29 = getelementptr inbounds %struct.option, %struct.option* %23, i32 0, i32 2
%30 = ptrtoint i32* %6 to i8
store i8 %30, i8* %29
%31 = getelementptr inbounds %struct.option, %struct.option* %23, i32 0, i32 3
store i32 1, i32* %31
%32 = getelementptr inbounds %struct.option, %struct.option* %23, i64 1
%33 = getelementptr inbounds %struct.option, %struct.option* %32, i32 0, i32 0
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8** %33
%34 = getelementptr inbounds %struct.option, %struct.option* %32, i32 0, i32 1
%35 = load i32, i32* @no_argument
%36 = sext i32 %35 to i64
%37 = inttoptr i64 %36 to i32*
store i32* %37, i32** %34
%38 = getelementptr inbounds %struct.option, %struct.option* %32, i32 0, i32 2
%39 = ptrtoint i32* %9 to i8
store i8 %39, i8* %38
%40 = getelementptr inbounds %struct.option, %struct.option* %32, i32 0, i32 3
store i32 1, i32* %40
%41 = getelementptr inbounds %struct.option, %struct.option* %32, i64 1
%42 = getelementptr inbounds %struct.option, %struct.option* %41, i32 0, i32 0
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8** %42
%43 = getelementptr inbounds %struct.option, %struct.option* %41, i32 0, i32 1
%44 = load i32, i32* @no_argument
%45 = sext i32 %44 to i64
%46 = inttoptr i64 %45 to i32*
store i32* %46, i32** %43
%47 = getelementptr inbounds %struct.option, %struct.option* %41, i32 0, i32 2
%48 = ptrtoint i32* %10 to i8
store i8 %48, i8* %47
%49 = getelementptr inbounds %struct.option, %struct.option* %41, i32 0, i32 3
store i32 1, i32* %49
%50 = getelementptr inbounds %struct.option, %struct.option* %41, i64 1
%51 = getelementptr inbounds %struct.option, %struct.option* %50, i32 0, i32 0
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8** %51
%52 = getelementptr inbounds %struct.option, %struct.option* %50, i32 0, i32 1
%53 = load i32, i32* @no_argument
%54 = sext i32 %53 to i64
%55 = inttoptr i64 %54 to i32*
store i32* %55, i32** %52
%56 = getelementptr inbounds %struct.option, %struct.option* %50, i32 0, i32 2
%57 = ptrtoint i32* %11 to i8
store i8 %57, i8* %56
%58 = getelementptr inbounds %struct.option, %struct.option* %50, i32 0, i32 3
store i32 1, i32* %58
%59 = getelementptr inbounds %struct.option, %struct.option* %50, i64 1
%60 = bitcast %struct.option* %59 to i8*
br label %61
61: ; preds = %92, %2
%62 = load i32, i32* %4
%63 = load i8**, i8*** %5
%64 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %13, i64 0, i64 0
%65 = call i32 @getopt_long(i32 %62, i8** %63, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), %struct.option* %64, i32* null)
store i32 %65, i32* %12
%66 = icmp ne i32 %65, -1
br i1 %66, label %67, label %93
67: ; preds = %61
%68 = load i32, i32* %12
switch i32 %68, label %86 [
i32 0, label %69
i32 104, label %70
i32 113, label %76
i32 108, label %77
i32 105, label %78
i32 118, label %79
i32 63, label %80
]
69: ; preds = %67
br label %92
70: ; preds = %67
%71 = load i8**, i8*** %5
%72 = getelementptr inbounds i8*, i8** %71, i64 0
%73 = load i8*, i8** %72
%74 = call i32 @usage(i8* %73)
%75 = load i32, i32* @EXIT_SUCCESS
store i32 %75, i32* %3
br label %131
76: ; preds = %67
store i32 1, i32* %6
br label %92
77: ; preds = %67
store i32 1, i32* %9
br label %92
78: ; preds = %67
store i32 1, i32* %10
br label %92
79: ; preds = %67
store i32 1, i32* %11
br label %92
80: ; preds = %67
%81 = load i8**, i8*** %5
%82 = getelementptr inbounds i8*, i8** %81, i64 0
%83 = load i8*, i8** %82
%84 = call i32 @usage(i8* %83)
%85 = load i32, i32* @EXIT_FAILURE
store i32 %85, i32* %3
br label %131
86: ; preds = %67
%87 = load i8**, i8*** %5
%88 = getelementptr inbounds i8*, i8** %87, i64 0
%89 = load i8*, i8** %88
%90 = call i32 @usage(i8* %89)
%91 = load i32, i32* @EXIT_FAILURE
store i32 %91, i32* %3
br label %131
92: ; preds = %79, %78, %77, %76, %69
br label %61
93: ; preds = %61
%94 = load i32, i32* @optind
%95 = load i32, i32* %4
%96 = icmp eq i32 %94, %95
br i1 %96, label %97, label %104
97: ; preds = %93
%98 = load i32, i32* @stdin
%99 = load i32, i32* %6
%100 = load i32, i32* %11
%101 = load i32, i32* %9
%102 = load i32, i32* %10
%103 = call i32 @is_utf8_readline(i32 %98, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i32 %99, i32 %100, i32 %101, i32 %102)
store i32 %103, i32* %3
br label %131
104: ; preds = %93
%105 = load i32, i32* @optind
store i32 %105, i32* %8
br label %106
106: ; preds = %126, %104
%107 = load i32, i32* %8
%108 = load i32, i32* %4
%109 = icmp slt i32 %107, %108
br i1 %109, label %110, label %129
110: ; preds = %106
%111 = load i8**, i8*** %5
%112 = load i32, i32* %8
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds i8*, i8** %111, i64 %113
%115 = load i8*, i8** %114
%116 = load i32, i32* %6
%117 = load i32, i32* %11
%118 = load i32, i32* %9
%119 = load i32, i32* %10
%120 = call i32 @is_utf8_mmap(i8* %115, i32 %116, i32 %117, i32 %118, i32 %119)
%121 = load i32, i32* @EXIT_FAILURE
%122 = icmp eq i32 %120, %121
br i1 %122, label %123, label %125
123: ; preds = %110
%124 = load i32, i32* @EXIT_FAILURE
store i32 %124, i32* %7
br label %125
125: ; preds = %123, %110
br label %126
126: ; preds = %125
%127 = load i32, i32* %8
%128 = add nsw i32 %127, 1
store i32 %128, i32* %8
br label %106
129: ; preds = %106
%130 = load i32, i32* %7
store i32 %130, i32* %3
br label %131
131: ; preds = %129, %97, %86, %80, %70
%132 = load i32, i32* %3
ret i32 %132
}

LLVM IR (-O2):
%struct.option = type { i8*, i32*, i8, i32 }
@EXIT_SUCCESS = global i32 0
@.str = [5 x i8] c"help\00"
@no_argument = global i32 0
@.str.1 = [6 x i8] c"quiet\00"
@.str.2 = [10 x i8] c"list-only\00"
@.str.3 = [7 x i8] c"invert\00"
@.str.4 = [8 x i8] c"verbose\00"
@.str.5 = [6 x i8] c"hqliv\00"
@EXIT_FAILURE = global i32 0
@optind = global i32 0
@stdin = global i32 0
@.str.6 = [17 x i8] c"(standard input)\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca [6 x %struct.option]
%8 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%9 = load i32, i32* @EXIT_SUCCESS
%10 = bitcast i32* %4 to i8*
store i32 0, i32* %4
%11 = bitcast i32* %5 to i8*
store i32 0, i32* %5
%12 = bitcast i32* %6 to i8*
store i32 0, i32* %6
%13 = bitcast [6 x %struct.option]* %7 to i8*
%14 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %7, i64 0, i64 0
%15 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %7, i64 0, i64 0, i32 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8** %15
%16 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %7, i64 0, i64 0, i32 1
%17 = load i32, i32* @no_argument
%18 = sext i32 %17 to i64
%19 = inttoptr i64 %18 to i32*
store i32* %19, i32** %16
%20 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %7, i64 0, i64 0, i32 2
store i8 0, i8* %20
%21 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %7, i64 0, i64 0, i32 3
store i32 104, i32* %21
%22 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %7, i64 0, i64 1, i32 0
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8** %22
%23 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %7, i64 0, i64 1, i32 1
store i32* %19, i32** %23
%24 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %7, i64 0, i64 1, i32 2
%25 = ptrtoint i32* %3 to i64
%26 = trunc i64 %25 to i8
store i8 %26, i8* %24
%27 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %7, i64 0, i64 1, i32 3
store i32 1, i32* %27
%28 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %7, i64 0, i64 2, i32 0
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8** %28
%29 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %7, i64 0, i64 2, i32 1
store i32* %19, i32** %29
%30 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %7, i64 0, i64 2, i32 2
%31 = ptrtoint i32* %4 to i64
%32 = trunc i64 %31 to i8
store i8 %32, i8* %30
%33 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %7, i64 0, i64 2, i32 3
store i32 1, i32* %33
%34 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %7, i64 0, i64 3, i32 0
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8** %34
%35 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %7, i64 0, i64 3, i32 1
store i32* %19, i32** %35
%36 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %7, i64 0, i64 3, i32 2
%37 = ptrtoint i32* %5 to i64
%38 = trunc i64 %37 to i8
store i8 %38, i8* %36
%39 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %7, i64 0, i64 3, i32 3
store i32 1, i32* %39
%40 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %7, i64 0, i64 4, i32 0
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8** %40
%41 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %7, i64 0, i64 4, i32 1
store i32* %19, i32** %41
%42 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %7, i64 0, i64 4, i32 2
%43 = ptrtoint i32* %6 to i64
%44 = trunc i64 %43 to i8
store i8 %44, i8* %42
%45 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %7, i64 0, i64 4, i32 3
store i32 1, i32* %45
%46 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %7, i64 0, i64 5
%47 = bitcast %struct.option* %46 to i8*
br label %48
48: ; preds = %50, %2
%49 = call i32 @getopt_long(i32 %0, i8** %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), %struct.option* %14, i32* null)
switch i32 %49, label %63 [
i32 -1, label %67
i32 0, label %50
i32 104, label %51
i32 113, label %55
i32 108, label %56
i32 105, label %57
i32 118, label %58
i32 63, label %59
]
50: ; preds = %48, %58, %57, %56, %55
br label %48
51: ; preds = %48
%52 = load i8*, i8** %1
%53 = call i32 @usage(i8* %52)
%54 = load i32, i32* @EXIT_SUCCESS
br label %97
55: ; preds = %48
store i32 1, i32* %3
br label %50
56: ; preds = %48
store i32 1, i32* %4
br label %50
57: ; preds = %48
store i32 1, i32* %5
br label %50
58: ; preds = %48
store i32 1, i32* %6
br label %50
59: ; preds = %48
%60 = load i8*, i8** %1
%61 = call i32 @usage(i8* %60)
%62 = load i32, i32* @EXIT_FAILURE
br label %97
63: ; preds = %48
%64 = load i8*, i8** %1
%65 = call i32 @usage(i8* %64)
%66 = load i32, i32* @EXIT_FAILURE
br label %97
67: ; preds = %48
%68 = load i32, i32* @optind
%69 = icmp eq i32 %68, %0
br i1 %69, label %74, label %70
70: ; preds = %67
%71 = icmp slt i32 %68, %0
br i1 %71, label %72, label %97
72: ; preds = %70
%73 = sext i32 %68 to i64
br label %81
74: ; preds = %67
%75 = load i32, i32* @stdin
%76 = load i32, i32* %3
%77 = load i32, i32* %6
%78 = load i32, i32* %4
%79 = load i32, i32* %5
%80 = call i32 @is_utf8_readline(i32 %75, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i32 %76, i32 %77, i32 %78, i32 %79)
br label %97
81: ; preds = %72, %81
%82 = phi i64 [ %73, %72 ], [ %94, %81 ]
%83 = phi i32 [ %9, %72 ], [ %93, %81 ]
%84 = getelementptr inbounds i8*, i8** %1, i64 %82
%85 = load i8*, i8** %84
%86 = load i32, i32* %3
%87 = load i32, i32* %6
%88 = load i32, i32* %4
%89 = load i32, i32* %5
%90 = call i32 @is_utf8_mmap(i8* %85, i32 %86, i32 %87, i32 %88, i32 %89)
%91 = load i32, i32* @EXIT_FAILURE
%92 = icmp eq i32 %90, %91
%93 = select i1 %92, i32 %91, i32 %83
%94 = add nsw i64 %82, 1
%95 = trunc i64 %94 to i32
%96 = icmp eq i32 %95, %0
br i1 %96, label %97, label %81
97: ; preds = %81, %70, %74, %63, %59, %51
%98 = phi i32 [ %66, %63 ], [ %62, %59 ], [ %54, %51 ], [ %80, %74 ], [ %9, %70 ], [ %93, %81 ]
ret i32 %98
}