#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 getopt(int, char **, char *);
char *optarg;
int optind;
int /*<<< orphan*/ printf(char *, char *, int);
int test_getopt5(void) {
  int r;
  char *t5[] = {"tail", "-n", "10", "README", "foo", NULL};
  optind = 0;
  r = getopt(5, t5, "n:");
  do {
    if (!(r == 'n')) {
      printf("expression '%s' untrue at %d\n", "r == 'n'", 99);
      return 0;
    }
  } while (0);
  do {
    if (!(optarg == t5[2])) {
      printf("expression '%s' untrue at %d\n", "optarg == t5[2]", 101);
      return 0;
    }
  } while (0);
  do {
    if (!(optind == 3)) {
      printf("expression '%s' untrue at %d\n", "optind == 3", 102);
      return 0;
    }
  } while (0);
  r = getopt(5, t5, "n:");
  do {
    if (!(r == -1)) {
      printf("expression '%s' untrue at %d\n", "r == -1", 105);
      return 0;
    }
  } while (0);
  do {
    if (!(optind == 3)) {
      printf("expression '%s' untrue at %d\n", "optind == 3", 106);
      return 0;
    }
  } while (0);
  do {
    if (!(optarg == NULL)) {
      printf("expression '%s' untrue at %d\n", "optarg == NULL", 107);
      return 0;
    }
  } while (0);
  r = getopt(5, t5, "n:");
  do {
    if (!(r == -1)) {
      printf("expression '%s' untrue at %d\n", "r == -1", 110);
      return 0;
    }
  } while (0);
  do {
    if (!(optind == 3)) {
      printf("expression '%s' untrue at %d\n", "optind == 3", 111);
      return 0;
    }
  } while (0);
  do {
    if (!(optarg == NULL)) {
      printf("expression '%s' untrue at %d\n", "optarg == NULL", 112);
      return 0;
    }
  } while (0);
  return 1;
}


x86 assembly (clang, -O0):
<test_getopt5>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1040 <memset@plt>
lea    0xeb1(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    0xeab(%rip),%rax
mov    %rax,-0x38(%rbp)
lea    0xea3(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    0xe9b(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    0xe97(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0x2e5a(%rip),%rax
movl   $0x0,(%rax)
lea    -0x40(%rbp),%rsi
mov    $0x5,%edi
lea    0xe7a(%rip),%rdx
call   1050 <getopt@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x6e,-0x8(%rbp)
je     11d2 <test_getopt5+0xa2>
lea    0xe64(%rip),%rdi
lea    0xe7b(%rip),%rsi
mov    $0x63,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13ee <test_getopt5+0x2be>
jmp    11d7 <test_getopt5+0xa7>
jmp    11dc <test_getopt5+0xac>
mov    0x2e15(%rip),%rax
mov    (%rax),%rax
cmp    -0x30(%rbp),%rax
je     1214 <test_getopt5+0xe4>
lea    0xe22(%rip),%rdi
lea    0xe42(%rip),%rsi
mov    $0x65,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13ee <test_getopt5+0x2be>
jmp    1219 <test_getopt5+0xe9>
jmp    121e <test_getopt5+0xee>
mov    0x2dbb(%rip),%rax
cmpl   $0x3,(%rax)
je     1252 <test_getopt5+0x122>
lea    0xde4(%rip),%rdi
lea    0xe14(%rip),%rsi
mov    $0x66,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13ee <test_getopt5+0x2be>
jmp    1257 <test_getopt5+0x127>
lea    -0x40(%rbp),%rsi
mov    $0x5,%edi
lea    0xdaf(%rip),%rdx
call   1050 <getopt@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0xffffffff,-0x8(%rbp)
je     129d <test_getopt5+0x16d>
lea    0xd99(%rip),%rdi
lea    0xdd5(%rip),%rsi
mov    $0x69,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13ee <test_getopt5+0x2be>
jmp    12a2 <test_getopt5+0x172>
jmp    12a7 <test_getopt5+0x177>
mov    0x2d32(%rip),%rax
cmpl   $0x3,(%rax)
je     12db <test_getopt5+0x1ab>
lea    0xd5b(%rip),%rdi
lea    0xd8b(%rip),%rsi
mov    $0x6a,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13ee <test_getopt5+0x2be>
jmp    12e0 <test_getopt5+0x1b0>
jmp    12e5 <test_getopt5+0x1b5>
mov    0x2d0c(%rip),%rax
cmpq   $0x0,(%rax)
je     131a <test_getopt5+0x1ea>
lea    0xd1c(%rip),%rdi
lea    0xd60(%rip),%rsi
mov    $0x6b,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13ee <test_getopt5+0x2be>
jmp    131f <test_getopt5+0x1ef>
lea    -0x40(%rbp),%rsi
mov    $0x5,%edi
lea    0xce7(%rip),%rdx
call   1050 <getopt@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0xffffffff,-0x8(%rbp)
je     1365 <test_getopt5+0x235>
lea    0xcd1(%rip),%rdi
lea    0xd0d(%rip),%rsi
mov    $0x6e,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13ee <test_getopt5+0x2be>
jmp    136a <test_getopt5+0x23a>
jmp    136f <test_getopt5+0x23f>
mov    0x2c6a(%rip),%rax
cmpl   $0x3,(%rax)
je     13a3 <test_getopt5+0x273>
lea    0xc93(%rip),%rdi
lea    0xcc3(%rip),%rsi
mov    $0x6f,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13ee <test_getopt5+0x2be>
jmp    13a8 <test_getopt5+0x278>
jmp    13ad <test_getopt5+0x27d>
mov    0x2c44(%rip),%rax
cmpq   $0x0,(%rax)
je     13e2 <test_getopt5+0x2b2>
lea    0xc54(%rip),%rdi
lea    0xc98(%rip),%rsi
mov    $0x70,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13ee <test_getopt5+0x2be>
jmp    13e7 <test_getopt5+0x2b7>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_getopt5>:
push   %r14
push   %rbx
sub    $0x38,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x20(%rsp)
lea    0xeca(%rip),%rax
mov    %rax,(%rsp)
lea    0xec4(%rip),%rax
mov    %rax,0x8(%rsp)
lea    0xebb(%rip),%rax
mov    %rax,0x10(%rsp)
lea    0xeb2(%rip),%rax
mov    %rax,0x18(%rsp)
lea    0xead(%rip),%rax
mov    %rax,0x20(%rsp)
mov    0x2e6f(%rip),%rbx
movl   $0x0,(%rbx)
lea    0xe98(%rip),%rdx
mov    %rsp,%rsi
mov    $0x5,%edi
call   1040 <getopt@plt>
cmp    $0x6e,%eax
jne    11b6 <test_getopt5+0x96>
mov    0x2e61(%rip),%r14
mov    (%r14),%rax
cmp    0x10(%rsp),%rax
je     11d8 <test_getopt5+0xb8>
lea    0xe71(%rip),%rdi
lea    0xe91(%rip),%rsi
mov    $0x65,%edx
jmp    11c9 <test_getopt5+0xa9>
lea    0xe5c(%rip),%rdi
lea    0xe73(%rip),%rsi
mov    $0x63,%edx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r14
ret
cmpl   $0x3,(%rbx)
jne    120b <test_getopt5+0xeb>
lea    0xe32(%rip),%rdx
mov    %rsp,%rsi
mov    $0x5,%edi
call   1040 <getopt@plt>
cmp    $0xffffffff,%eax
je     1220 <test_getopt5+0x100>
lea    0xe1c(%rip),%rdi
lea    0xe58(%rip),%rsi
mov    $0x69,%edx
jmp    11c9 <test_getopt5+0xa9>
lea    0xe07(%rip),%rdi
lea    0xe37(%rip),%rsi
mov    $0x66,%edx
jmp    11c9 <test_getopt5+0xa9>
cmpl   $0x3,(%rbx)
jne    1240 <test_getopt5+0x120>
cmpq   $0x0,(%r14)
je     1258 <test_getopt5+0x138>
lea    0xde7(%rip),%rdi
lea    0xe2b(%rip),%rsi
mov    $0x6b,%edx
jmp    11c9 <test_getopt5+0xa9>
lea    0xdd2(%rip),%rdi
lea    0xe02(%rip),%rsi
mov    $0x6a,%edx
jmp    11c9 <test_getopt5+0xa9>
lea    0xdb7(%rip),%rdx
mov    %rsp,%rsi
mov    $0x5,%edi
call   1040 <getopt@plt>
cmp    $0xffffffff,%eax
je     1289 <test_getopt5+0x169>
lea    0xda1(%rip),%rdi
lea    0xddd(%rip),%rsi
mov    $0x6e,%edx
jmp    11c9 <test_getopt5+0xa9>
cmpl   $0x3,(%rbx)
jne    12ac <test_getopt5+0x18c>
cmpq   $0x0,(%r14)
je     12c4 <test_getopt5+0x1a4>
lea    0xd7e(%rip),%rdi
lea    0xdc2(%rip),%rsi
mov    $0x70,%edx
jmp    11c9 <test_getopt5+0xa9>
lea    0xd66(%rip),%rdi
lea    0xd96(%rip),%rsi
mov    $0x6f,%edx
jmp    11c9 <test_getopt5+0xa9>
mov    $0x1,%eax
jmp    11d0 <test_getopt5+0xb0>

LLVM IR (-O0):
@.str = [5 x i8] c"tail\00"
@.str.1 = [3 x i8] c"-n\00"
@.str.2 = [3 x i8] c"10\00"
@.str.3 = [7 x i8] c"README\00"
@.str.4 = [4 x i8] c"foo\00"
@optind = global i32 0
@.str.5 = [3 x i8] c"n:\00"
@.str.6 = [30 x i8] c"expression '%s' untrue at %d\0A\00"
@.str.7 = [9 x i8] c"r == 'n'\00"
@optarg = global i8* null
@.str.8 = [16 x i8] c"optarg == t5[2]\00"
@.str.9 = [12 x i8] c"optind == 3\00"
@.str.10 = [8 x i8] c"r == -1\00"
@.str.11 = [15 x i8] c"optarg == NULL\00"
define i32 @test_getopt5() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [6 x i8*]
%4 = bitcast [6 x i8*]* %3 to i8*
%5 = bitcast i8* %4 to [6 x i8*]*
%6 = getelementptr inbounds [6 x i8*], [6 x i8*]* %5, i32 0, i32 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8** %6
%7 = getelementptr inbounds [6 x i8*], [6 x i8*]* %5, i32 0, i32 1
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i32 0, i32 0), i8** %7
%8 = getelementptr inbounds [6 x i8*], [6 x i8*]* %5, i32 0, i32 2
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i32 0, i32 0), i8** %8
%9 = getelementptr inbounds [6 x i8*], [6 x i8*]* %5, i32 0, i32 3
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i32 0, i32 0), i8** %9
%10 = getelementptr inbounds [6 x i8*], [6 x i8*]* %5, i32 0, i32 4
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i32 0, i32 0), i8** %10
store i32 0, i32* @optind
%11 = getelementptr inbounds [6 x i8*], [6 x i8*]* %3, i64 0, i64 0
%12 = call i32 @getopt(i32 5, i8** %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
store i32 %12, i32* %2
br label %13
13: ; preds = %0
%14 = load i32, i32* %2
%15 = icmp eq i32 %14, 110
br i1 %15, label %18, label %16
16: ; preds = %13
%17 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i32 99)
store i32 0, i32* %1
br label %82
18: ; preds = %13
br label %19
19: ; preds = %18
br label %20
20: ; preds = %19
%21 = load i8*, i8** @optarg
%22 = getelementptr inbounds [6 x i8*], [6 x i8*]* %3, i64 0, i64 2
%23 = load i8*, i8** %22
%24 = icmp eq i8* %21, %23
br i1 %24, label %27, label %25
25: ; preds = %20
%26 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i32 101)
store i32 0, i32* %1
br label %82
27: ; preds = %20
br label %28
28: ; preds = %27
br label %29
29: ; preds = %28
%30 = load i32, i32* @optind
%31 = icmp eq i32 %30, 3
br i1 %31, label %34, label %32
32: ; preds = %29
%33 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i32 102)
store i32 0, i32* %1
br label %82
34: ; preds = %29
br label %35
35: ; preds = %34
%36 = getelementptr inbounds [6 x i8*], [6 x i8*]* %3, i64 0, i64 0
%37 = call i32 @getopt(i32 5, i8** %36, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
store i32 %37, i32* %2
br label %38
38: ; preds = %35
%39 = load i32, i32* %2
%40 = icmp eq i32 %39, -1
br i1 %40, label %43, label %41
41: ; preds = %38
%42 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 105)
store i32 0, i32* %1
br label %82
43: ; preds = %38
br label %44
44: ; preds = %43
br label %45
45: ; preds = %44
%46 = load i32, i32* @optind
%47 = icmp eq i32 %46, 3
br i1 %47, label %50, label %48
48: ; preds = %45
%49 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i32 106)
store i32 0, i32* %1
br label %82
50: ; preds = %45
br label %51
51: ; preds = %50
br label %52
52: ; preds = %51
%53 = load i8*, i8** @optarg
%54 = icmp eq i8* %53, null
br i1 %54, label %57, label %55
55: ; preds = %52
%56 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i32 107)
store i32 0, i32* %1
br label %82
57: ; preds = %52
br label %58
58: ; preds = %57
%59 = getelementptr inbounds [6 x i8*], [6 x i8*]* %3, i64 0, i64 0
%60 = call i32 @getopt(i32 5, i8** %59, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
store i32 %60, i32* %2
br label %61
61: ; preds = %58
%62 = load i32, i32* %2
%63 = icmp eq i32 %62, -1
br i1 %63, label %66, label %64
64: ; preds = %61
%65 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 110)
store i32 0, i32* %1
br label %82
66: ; preds = %61
br label %67
67: ; preds = %66
br label %68
68: ; preds = %67
%69 = load i32, i32* @optind
%70 = icmp eq i32 %69, 3
br i1 %70, label %73, label %71
71: ; preds = %68
%72 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i32 111)
store i32 0, i32* %1
br label %82
73: ; preds = %68
br label %74
74: ; preds = %73
br label %75
75: ; preds = %74
%76 = load i8*, i8** @optarg
%77 = icmp eq i8* %76, null
br i1 %77, label %80, label %78
78: ; preds = %75
%79 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i32 112)
store i32 0, i32* %1
br label %82
80: ; preds = %75
br label %81
81: ; preds = %80
store i32 1, i32* %1
br label %82
82: ; preds = %81, %78, %71, %64, %55, %48, %41, %32, %25, %16
%83 = load i32, i32* %1
ret i32 %83
}

LLVM IR (-O2):
@.str = [5 x i8] c"tail\00"
@.str.1 = [3 x i8] c"-n\00"
@.str.2 = [3 x i8] c"10\00"
@.str.3 = [7 x i8] c"README\00"
@.str.4 = [4 x i8] c"foo\00"
@optind = global i32 0
@.str.5 = [3 x i8] c"n:\00"
@.str.6 = [30 x i8] c"expression '%s' untrue at %d\0A\00"
@.str.7 = [9 x i8] c"r == 'n'\00"
@optarg = global i8* null
@.str.8 = [16 x i8] c"optarg == t5[2]\00"
@.str.9 = [12 x i8] c"optind == 3\00"
@.str.10 = [8 x i8] c"r == -1\00"
@.str.11 = [15 x i8] c"optarg == NULL\00"
define i32 @test_getopt5() {
%1 = alloca [6 x i8*]
%2 = bitcast [6 x i8*]* %1 to i8*
%3 = getelementptr inbounds [6 x i8*], [6 x i8*]* %1, i64 0, i64 4
%4 = bitcast i8** %3 to i8*
%5 = getelementptr inbounds [6 x i8*], [6 x i8*]* %1, i64 0, i64 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8** %5
%6 = getelementptr inbounds [6 x i8*], [6 x i8*]* %1, i64 0, i64 1
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8** %6
%7 = getelementptr inbounds [6 x i8*], [6 x i8*]* %1, i64 0, i64 2
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8** %7
%8 = getelementptr inbounds [6 x i8*], [6 x i8*]* %1, i64 0, i64 3
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8** %8
%9 = getelementptr inbounds [6 x i8*], [6 x i8*]* %1, i64 0, i64 4
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8** %9
store i32 0, i32* @optind
%10 = call i32 @getopt(i32 5, i8** %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%11 = icmp eq i32 %10, 110
br i1 %11, label %14, label %12
12: ; preds = %0
%13 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i32 99)
br label %55
14: ; preds = %0
%15 = load i8*, i8** @optarg
%16 = load i8*, i8** %7
%17 = icmp eq i8* %15, %16
br i1 %17, label %20, label %18
18: ; preds = %14
%19 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i32 101)
br label %55
20: ; preds = %14
%21 = load i32, i32* @optind
%22 = icmp eq i32 %21, 3
br i1 %22, label %25, label %23
23: ; preds = %20
%24 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i32 102)
br label %55
25: ; preds = %20
%26 = call i32 @getopt(i32 5, i8** %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%27 = icmp eq i32 %26, -1
br i1 %27, label %30, label %28
28: ; preds = %25
%29 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 105)
br label %55
30: ; preds = %25
%31 = load i32, i32* @optind
%32 = icmp eq i32 %31, 3
br i1 %32, label %35, label %33
33: ; preds = %30
%34 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i32 106)
br label %55
35: ; preds = %30
%36 = load i8*, i8** @optarg
%37 = icmp eq i8* %36, null
br i1 %37, label %40, label %38
38: ; preds = %35
%39 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i32 107)
br label %55
40: ; preds = %35
%41 = call i32 @getopt(i32 5, i8** %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%42 = icmp eq i32 %41, -1
br i1 %42, label %45, label %43
43: ; preds = %40
%44 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 110)
br label %55
45: ; preds = %40
%46 = load i32, i32* @optind
%47 = icmp eq i32 %46, 3
br i1 %47, label %50, label %48
48: ; preds = %45
%49 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i32 111)
br label %55
50: ; preds = %45
%51 = load i8*, i8** @optarg
%52 = icmp eq i8* %51, null
br i1 %52, label %55, label %53
53: ; preds = %50
%54 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i32 112)
br label %55
55: ; preds = %50, %53, %48, %43, %38, %33, %28, %23, %18, %12
%56 = phi i32 [ 0, %53 ], [ 0, %48 ], [ 0, %43 ], [ 0, %38 ], [ 0, %33 ], [ 0, %28 ], [ 0, %23 ], [ 0, %18 ], [ 0, %12 ], [ 1, %50 ]
ret i32 %56
}