#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 *);
int /*<<< orphan*/ *optarg;
int optind;
int /*<<< orphan*/ printf(char *, char *, int);
int test_getopt6(void) {
  int r;
  char *t2[] = {"a", "b", "c", "d", "e", NULL};
  optind = 0;
  r = getopt(5, t2, "l");
  do {
    if (!(r == -1)) {
      printf("expression '%s' untrue at %d\n", "r == -1", 124);
      return 0;
    }
  } while (0);
  do {
    if (!(optind == 1)) {
      printf("expression '%s' untrue at %d\n", "optind == 1", 125);
      return 0;
    }
  } while (0);
  do {
    if (!(optarg == NULL)) {
      printf("expression '%s' untrue at %d\n", "optarg == NULL", 126);
      return 0;
    }
  } while (0);
  optind = 1;
  r = getopt(5, t2, "l");
  do {
    if (!(r == -1)) {
      printf("expression '%s' untrue at %d\n", "r == -1", 130);
      return 0;
    }
  } while (0);
  do {
    if (!(optind == 1)) {
      printf("expression '%s' untrue at %d\n", "optind == 1", 131);
      return 0;
    }
  } while (0);
  do {
    if (!(optarg == NULL)) {
      printf("expression '%s' untrue at %d\n", "optarg == NULL", 132);
      return 0;
    }
  } while (0);
  optind = 2;
  r = getopt(5, t2, "l");
  do {
    if (!(r == -1)) {
      printf("expression '%s' untrue at %d\n", "r == -1", 136);
      return 0;
    }
  } while (0);
  do {
    if (!(optind == 1)) {
      printf("expression '%s' untrue at %d\n", "optind == 1", 137);
      return 0;
    }
  } while (0);
  do {
    if (!(optarg == NULL)) {
      printf("expression '%s' untrue at %d\n", "optarg == NULL", 138);
      return 0;
    }
  } while (0);
  return 1;
}


x86 assembly (clang, -O0):
<test_getopt6>:
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    0xea8(%rip),%rax
mov    %rax,-0x38(%rbp)
lea    0xe9f(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    0xe96(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    0xe8d(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0x2e5a(%rip),%rax
movl   $0x0,(%rax)
lea    -0x40(%rbp),%rsi
mov    $0x5,%edi
lea    0xe6e(%rip),%rdx
call   1050 <getopt@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0xffffffff,-0x8(%rbp)
je     11d2 <test_getopt6+0xa2>
lea    0xe57(%rip),%rdi
lea    0xe6e(%rip),%rsi
mov    $0x7c,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1405 <test_getopt6+0x2d5>
jmp    11d7 <test_getopt6+0xa7>
jmp    11dc <test_getopt6+0xac>
mov    0x2dfd(%rip),%rax
cmpl   $0x1,(%rax)
je     1210 <test_getopt6+0xe0>
lea    0xe19(%rip),%rdi
lea    0xe38(%rip),%rsi
mov    $0x7d,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1405 <test_getopt6+0x2d5>
jmp    1215 <test_getopt6+0xe5>
jmp    121a <test_getopt6+0xea>
mov    0x2dd7(%rip),%rax
cmpq   $0x0,(%rax)
je     124f <test_getopt6+0x11f>
lea    0xdda(%rip),%rdi
lea    0xe05(%rip),%rsi
mov    $0x7e,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1405 <test_getopt6+0x2d5>
jmp    1254 <test_getopt6+0x124>
mov    0x2d85(%rip),%rax
movl   $0x1,(%rax)
lea    -0x40(%rbp),%rsi
mov    $0x5,%edi
lea    0xd99(%rip),%rdx
call   1050 <getopt@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0xffffffff,-0x8(%rbp)
je     12a7 <test_getopt6+0x177>
lea    0xd82(%rip),%rdi
lea    0xd99(%rip),%rsi
mov    $0x82,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1405 <test_getopt6+0x2d5>
jmp    12ac <test_getopt6+0x17c>
jmp    12b1 <test_getopt6+0x181>
mov    0x2d28(%rip),%rax
cmpl   $0x1,(%rax)
je     12e5 <test_getopt6+0x1b5>
lea    0xd44(%rip),%rdi
lea    0xd63(%rip),%rsi
mov    $0x83,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1405 <test_getopt6+0x2d5>
jmp    12ea <test_getopt6+0x1ba>
jmp    12ef <test_getopt6+0x1bf>
mov    0x2d02(%rip),%rax
cmpq   $0x0,(%rax)
je     1324 <test_getopt6+0x1f4>
lea    0xd05(%rip),%rdi
lea    0xd30(%rip),%rsi
mov    $0x84,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1405 <test_getopt6+0x2d5>
jmp    1329 <test_getopt6+0x1f9>
mov    0x2cb0(%rip),%rax
movl   $0x2,(%rax)
lea    -0x40(%rbp),%rsi
mov    $0x5,%edi
lea    0xcc4(%rip),%rdx
call   1050 <getopt@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0xffffffff,-0x8(%rbp)
je     137c <test_getopt6+0x24c>
lea    0xcad(%rip),%rdi
lea    0xcc4(%rip),%rsi
mov    $0x88,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1405 <test_getopt6+0x2d5>
jmp    1381 <test_getopt6+0x251>
jmp    1386 <test_getopt6+0x256>
mov    0x2c53(%rip),%rax
cmpl   $0x1,(%rax)
je     13ba <test_getopt6+0x28a>
lea    0xc6f(%rip),%rdi
lea    0xc8e(%rip),%rsi
mov    $0x89,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1405 <test_getopt6+0x2d5>
jmp    13bf <test_getopt6+0x28f>
jmp    13c4 <test_getopt6+0x294>
mov    0x2c2d(%rip),%rax
cmpq   $0x0,(%rax)
je     13f9 <test_getopt6+0x2c9>
lea    0xc30(%rip),%rdi
lea    0xc5b(%rip),%rsi
mov    $0x8a,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1405 <test_getopt6+0x2d5>
jmp    13fe <test_getopt6+0x2ce>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_getopt6>:
push   %r14
push   %rbx
sub    $0x38,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x20(%rsp)
lea    0xeca(%rip),%rax
mov    %rax,(%rsp)
lea    0xec1(%rip),%rax
mov    %rax,0x8(%rsp)
lea    0xeb7(%rip),%rax
mov    %rax,0x10(%rsp)
lea    0xead(%rip),%rax
mov    %rax,0x18(%rsp)
lea    0xea3(%rip),%rax
mov    %rax,0x20(%rsp)
mov    0x2e6f(%rip),%rbx
movl   $0x0,(%rbx)
lea    0xe8c(%rip),%rdx
mov    %rsp,%rsi
mov    $0x5,%edi
call   1040 <getopt@plt>
cmp    $0xffffffff,%eax
je     11a5 <test_getopt6+0x85>
lea    0xe75(%rip),%rdi
lea    0xe8c(%rip),%rsi
mov    $0x7c,%edx
jmp    11df <test_getopt6+0xbf>
cmpl   $0x1,(%rbx)
jne    11cc <test_getopt6+0xac>
mov    0x2e47(%rip),%r14
cmpq   $0x0,(%r14)
je     11ee <test_getopt6+0xce>
lea    0xe4e(%rip),%rdi
lea    0xe79(%rip),%rsi
mov    $0x7e,%edx
jmp    11df <test_getopt6+0xbf>
lea    0xe39(%rip),%rdi
lea    0xe58(%rip),%rsi
mov    $0x7d,%edx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r14
ret
movl   $0x1,(%rbx)
lea    0xe0f(%rip),%rdx
mov    %rsp,%rsi
mov    $0x5,%edi
call   1040 <getopt@plt>
cmp    $0xffffffff,%eax
je     1222 <test_getopt6+0x102>
lea    0xdf8(%rip),%rdi
lea    0xe0f(%rip),%rsi
mov    $0x82,%edx
jmp    11df <test_getopt6+0xbf>
cmpl   $0x1,(%rbx)
jne    1242 <test_getopt6+0x122>
cmpq   $0x0,(%r14)
je     1257 <test_getopt6+0x137>
lea    0xdd8(%rip),%rdi
lea    0xe03(%rip),%rsi
mov    $0x84,%edx
jmp    11df <test_getopt6+0xbf>
lea    0xdc3(%rip),%rdi
lea    0xde2(%rip),%rsi
mov    $0x83,%edx
jmp    11df <test_getopt6+0xbf>
movl   $0x2,(%rbx)
lea    0xda6(%rip),%rdx
mov    %rsp,%rsi
mov    $0x5,%edi
call   1040 <getopt@plt>
cmp    $0xffffffff,%eax
je     128e <test_getopt6+0x16e>
lea    0xd8f(%rip),%rdi
lea    0xda6(%rip),%rsi
mov    $0x88,%edx
jmp    11df <test_getopt6+0xbf>
cmpl   $0x1,(%rbx)
jne    12b1 <test_getopt6+0x191>
cmpq   $0x0,(%r14)
je     12c9 <test_getopt6+0x1a9>
lea    0xd6c(%rip),%rdi
lea    0xd97(%rip),%rsi
mov    $0x8a,%edx
jmp    11df <test_getopt6+0xbf>
lea    0xd54(%rip),%rdi
lea    0xd73(%rip),%rsi
mov    $0x89,%edx
jmp    11df <test_getopt6+0xbf>
mov    $0x1,%eax
jmp    11e6 <test_getopt6+0xc6>

LLVM IR (-O0):
@.str = [2 x i8] c"a\00"
@.str.1 = [2 x i8] c"b\00"
@.str.2 = [2 x i8] c"c\00"
@.str.3 = [2 x i8] c"d\00"
@.str.4 = [2 x i8] c"e\00"
@optind = global i32 0
@.str.5 = [2 x i8] c"l\00"
@.str.6 = [30 x i8] c"expression '%s' untrue at %d\0A\00"
@.str.7 = [8 x i8] c"r == -1\00"
@.str.8 = [12 x i8] c"optind == 1\00"
@optarg = global i32* null
@.str.9 = [15 x i8] c"optarg == NULL\00"
define i32 @test_getopt6() {
%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 ([2 x i8], [2 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 ([2 x i8], [2 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 ([2 x i8], [2 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 ([2 x i8], [2 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 ([2 x i8], [2 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 ([2 x i8], [2 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, -1
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 ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i32 124)
store i32 0, i32* %1
br label %80
18: ; preds = %13
br label %19
19: ; preds = %18
br label %20
20: ; preds = %19
%21 = load i32, i32* @optind
%22 = icmp eq i32 %21, 1
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.8, i64 0, i64 0), i32 125)
store i32 0, i32* %1
br label %80
25: ; preds = %20
br label %26
26: ; preds = %25
br label %27
27: ; preds = %26
%28 = load i32*, i32** @optarg
%29 = icmp eq i32* %28, null
br i1 %29, label %32, label %30
30: ; preds = %27
%31 = 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.9, i64 0, i64 0), i32 126)
store i32 0, i32* %1
br label %80
32: ; preds = %27
br label %33
33: ; preds = %32
store i32 1, i32* @optind
%34 = getelementptr inbounds [6 x i8*], [6 x i8*]* %3, i64 0, i64 0
%35 = call i32 @getopt(i32 5, i8** %34, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i32 %35, i32* %2
br label %36
36: ; preds = %33
%37 = load i32, i32* %2
%38 = icmp eq i32 %37, -1
br i1 %38, label %41, label %39
39: ; preds = %36
%40 = 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.7, i64 0, i64 0), i32 130)
store i32 0, i32* %1
br label %80
41: ; preds = %36
br label %42
42: ; preds = %41
br label %43
43: ; preds = %42
%44 = load i32, i32* @optind
%45 = icmp eq i32 %44, 1
br i1 %45, label %48, label %46
46: ; preds = %43
%47 = 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.8, i64 0, i64 0), i32 131)
store i32 0, i32* %1
br label %80
48: ; preds = %43
br label %49
49: ; preds = %48
br label %50
50: ; preds = %49
%51 = load i32*, i32** @optarg
%52 = icmp eq i32* %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.9, i64 0, i64 0), i32 132)
store i32 0, i32* %1
br label %80
55: ; preds = %50
br label %56
56: ; preds = %55
store i32 2, i32* @optind
%57 = getelementptr inbounds [6 x i8*], [6 x i8*]* %3, i64 0, i64 0
%58 = call i32 @getopt(i32 5, i8** %57, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i32 %58, i32* %2
br label %59
59: ; preds = %56
%60 = load i32, i32* %2
%61 = icmp eq i32 %60, -1
br i1 %61, label %64, label %62
62: ; preds = %59
%63 = 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.7, i64 0, i64 0), i32 136)
store i32 0, i32* %1
br label %80
64: ; preds = %59
br label %65
65: ; preds = %64
br label %66
66: ; preds = %65
%67 = load i32, i32* @optind
%68 = icmp eq i32 %67, 1
br i1 %68, label %71, label %69
69: ; preds = %66
%70 = 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.8, i64 0, i64 0), i32 137)
store i32 0, i32* %1
br label %80
71: ; preds = %66
br label %72
72: ; preds = %71
br label %73
73: ; preds = %72
%74 = load i32*, i32** @optarg
%75 = icmp eq i32* %74, null
br i1 %75, label %78, label %76
76: ; preds = %73
%77 = 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.9, i64 0, i64 0), i32 138)
store i32 0, i32* %1
br label %80
78: ; preds = %73
br label %79
79: ; preds = %78
store i32 1, i32* %1
br label %80
80: ; preds = %79, %76, %69, %62, %53, %46, %39, %30, %23, %16
%81 = load i32, i32* %1
ret i32 %81
}

LLVM IR (-O2):
@.str = [2 x i8] c"a\00"
@.str.1 = [2 x i8] c"b\00"
@.str.2 = [2 x i8] c"c\00"
@.str.3 = [2 x i8] c"d\00"
@.str.4 = [2 x i8] c"e\00"
@optind = global i32 0
@.str.5 = [2 x i8] c"l\00"
@.str.6 = [30 x i8] c"expression '%s' untrue at %d\0A\00"
@.str.7 = [8 x i8] c"r == -1\00"
@.str.8 = [12 x i8] c"optind == 1\00"
@optarg = global i32* null
@.str.9 = [15 x i8] c"optarg == NULL\00"
define i32 @test_getopt6() {
%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 ([2 x i8], [2 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 ([2 x i8], [2 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 ([2 x i8], [2 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 ([2 x i8], [2 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 ([2 x i8], [2 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 ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%11 = icmp eq i32 %10, -1
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 ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i32 124)
br label %54
14: ; preds = %0
%15 = load i32, i32* @optind
%16 = icmp eq i32 %15, 1
br i1 %16, label %19, label %17
17: ; preds = %14
%18 = 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.8, i64 0, i64 0), i32 125)
br label %54
19: ; preds = %14
%20 = load i32*, i32** @optarg
%21 = icmp eq i32* %20, null
br i1 %21, label %24, label %22
22: ; preds = %19
%23 = 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.9, i64 0, i64 0), i32 126)
br label %54
24: ; preds = %19
store i32 1, i32* @optind
%25 = call i32 @getopt(i32 5, i8** %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%26 = icmp eq i32 %25, -1
br i1 %26, label %29, label %27
27: ; preds = %24
%28 = 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.7, i64 0, i64 0), i32 130)
br label %54
29: ; preds = %24
%30 = load i32, i32* @optind
%31 = icmp eq i32 %30, 1
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.8, i64 0, i64 0), i32 131)
br label %54
34: ; preds = %29
%35 = load i32*, i32** @optarg
%36 = icmp eq i32* %35, null
br i1 %36, label %39, label %37
37: ; preds = %34
%38 = 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.9, i64 0, i64 0), i32 132)
br label %54
39: ; preds = %34
store i32 2, i32* @optind
%40 = call i32 @getopt(i32 5, i8** %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%41 = icmp eq i32 %40, -1
br i1 %41, label %44, label %42
42: ; preds = %39
%43 = 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.7, i64 0, i64 0), i32 136)
br label %54
44: ; preds = %39
%45 = load i32, i32* @optind
%46 = icmp eq i32 %45, 1
br i1 %46, label %49, label %47
47: ; preds = %44
%48 = 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.8, i64 0, i64 0), i32 137)
br label %54
49: ; preds = %44
%50 = load i32*, i32** @optarg
%51 = icmp eq i32* %50, null
br i1 %51, label %54, label %52
52: ; preds = %49
%53 = 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.9, i64 0, i64 0), i32 138)
br label %54
54: ; preds = %49, %52, %47, %42, %37, %32, %27, %22, %17, %12
%55 = phi i32 [ 0, %52 ], [ 0, %47 ], [ 0, %42 ], [ 0, %37 ], [ 0, %32 ], [ 0, %27 ], [ 0, %22 ], [ 0, %17 ], [ 0, %12 ], [ 1, %49 ]
ret i32 %55
}