#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 atoi(char *);
int /*<<< orphan*/ strcmp(char *, char *);
void parse_blank(int argc, char **argv, int *option, int *opt_all,
                 int *bad_arg) {
  if (argc > 1 || *option)
    *bad_arg = 1;
  *option = 1;
  if (argc == 1) {
    if (!strcmp(argv[0], "force"))
      *opt_all = -1;
    else if (!strcmp(argv[0], "poke"))
      *opt_all = -2;
    else {
      *opt_all = atoi(argv[0]);
      if ((*opt_all > 60) || (*opt_all < 0))
        *bad_arg = 1;
    }
  } else {
    *opt_all = -3;
  }
}


x86 assembly (clang, -O0):
<parse_blank>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
cmpl   $0x1,-0x4(%rbp)
jg     1152 <parse_blank+0x32>
mov    -0x18(%rbp),%rax
cmpl   $0x0,(%rax)
je     115c <parse_blank+0x3c>
mov    -0x28(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x18(%rbp),%rax
movl   $0x1,(%rax)
cmpl   $0x1,-0x4(%rbp)
jne    120d <parse_blank+0xed>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xe82(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    119b <parse_blank+0x7b>
mov    -0x20(%rbp),%rax
movl   $0xffffffff,(%rax)
jmp    1208 <parse_blank+0xe8>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xe5d(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    11c6 <parse_blank+0xa6>
mov    -0x20(%rbp),%rax
movl   $0xfffffffe,(%rax)
jmp    1203 <parse_blank+0xe3>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1040 <atoi@plt>
mov    %eax,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x20(%rbp),%rax
cmpl   $0x3c,(%rax)
jg     11f4 <parse_blank+0xd4>
mov    -0x20(%rbp),%rax
cmpl   $0x0,(%rax)
jge    11fe <parse_blank+0xde>
mov    -0x28(%rbp),%rax
movl   $0x1,(%rax)
jmp    1203 <parse_blank+0xe3>
jmp    1208 <parse_blank+0xe8>
jmp    1217 <parse_blank+0xf7>
mov    -0x20(%rbp),%rax
movl   $0xfffffffd,(%rax)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_blank>:
push   %r15
push   %r14
push   %rbx
mov    %r8,%r14
mov    %rcx,%r15
cmp    $0x1,%edi
jg     1135 <parse_blank+0x15>
cmpl   $0x0,(%rdx)
je     113c <parse_blank+0x1c>
movl   $0x1,(%r14)
movl   $0x1,(%rdx)
cmp    $0x1,%edi
jne    1189 <parse_blank+0x69>
mov    (%rsi),%rbx
lea    0xeaf(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1192 <parse_blank+0x72>
lea    0xea2(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     119b <parse_blank+0x7b>
mov    %rbx,%rdi
call   1040 <atoi@plt>
mov    %eax,(%r15)
cmp    $0x3d,%eax
jb     11a2 <parse_blank+0x82>
movl   $0x1,(%r14)
jmp    11a2 <parse_blank+0x82>
movl   $0xfffffffd,(%r15)
jmp    11a2 <parse_blank+0x82>
movl   $0xffffffff,(%r15)
jmp    11a2 <parse_blank+0x82>
movl   $0xfffffffe,(%r15)
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [6 x i8] c"force\00"
@.str.1 = [5 x i8] c"poke\00"
define void @parse_blank(i32 %0, i8** %1, i32* %2, i32* %3, i32* %4) {
%6 = alloca i32
%7 = alloca i8**
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32*
store i32 %0, i32* %6
store i8** %1, i8*** %7
store i32* %2, i32** %8
store i32* %3, i32** %9
store i32* %4, i32** %10
%11 = load i32, i32* %6
%12 = icmp sgt i32 %11, 1
br i1 %12, label %17, label %13
13: ; preds = %5
%14 = load i32*, i32** %8
%15 = load i32, i32* %14
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %13, %5
%18 = load i32*, i32** %10
store i32 1, i32* %18
br label %19
19: ; preds = %17, %13
%20 = load i32*, i32** %8
store i32 1, i32* %20
%21 = load i32, i32* %6
%22 = icmp eq i32 %21, 1
br i1 %22, label %23, label %57
23: ; preds = %19
%24 = load i8**, i8*** %7
%25 = getelementptr inbounds i8*, i8** %24, i64 0
%26 = load i8*, i8** %25
%27 = call i32 @strcmp(i8* %26, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%28 = icmp ne i32 %27, 0
br i1 %28, label %31, label %29
29: ; preds = %23
%30 = load i32*, i32** %9
store i32 -1, i32* %30
br label %56
31: ; preds = %23
%32 = load i8**, i8*** %7
%33 = getelementptr inbounds i8*, i8** %32, i64 0
%34 = load i8*, i8** %33
%35 = call i32 @strcmp(i8* %34, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%36 = icmp ne i32 %35, 0
br i1 %36, label %39, label %37
37: ; preds = %31
%38 = load i32*, i32** %9
store i32 -2, i32* %38
br label %55
39: ; preds = %31
%40 = load i8**, i8*** %7
%41 = getelementptr inbounds i8*, i8** %40, i64 0
%42 = load i8*, i8** %41
%43 = call i32 @atoi(i8* %42)
%44 = load i32*, i32** %9
store i32 %43, i32* %44
%45 = load i32*, i32** %9
%46 = load i32, i32* %45
%47 = icmp sgt i32 %46, 60
br i1 %47, label %52, label %48
48: ; preds = %39
%49 = load i32*, i32** %9
%50 = load i32, i32* %49
%51 = icmp slt i32 %50, 0
br i1 %51, label %52, label %54
52: ; preds = %48, %39
%53 = load i32*, i32** %10
store i32 1, i32* %53
br label %54
54: ; preds = %52, %48
br label %55
55: ; preds = %54, %37
br label %56
56: ; preds = %55, %29
br label %59
57: ; preds = %19
%58 = load i32*, i32** %9
store i32 -3, i32* %58
br label %59
59: ; preds = %57, %56
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"force\00"
@.str.1 = [5 x i8] c"poke\00"
define void @parse_blank(i32 %0, i8** nocapture %1, i32* nocapture %2, i32* nocapture writeonly %3, i32* nocapture writeonly %4) {
%6 = icmp sgt i32 %0, 1
br i1 %6, label %10, label %7
7: ; preds = %5
%8 = load i32, i32* %2
%9 = icmp eq i32 %8, 0
br i1 %9, label %11, label %10
10: ; preds = %7, %5
store i32 1, i32* %4
br label %11
11: ; preds = %10, %7
store i32 1, i32* %2
%12 = icmp eq i32 %0, 1
br i1 %12, label %13, label %26
13: ; preds = %11
%14 = load i8*, i8** %1
%15 = tail call i32 @strcmp(i8* dereferenceable(1) %14, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13
store i32 -1, i32* %3
br label %27
18: ; preds = %13
%19 = tail call i32 @strcmp(i8* dereferenceable(1) %14, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %18
store i32 -2, i32* %3
br label %27
22: ; preds = %18
%23 = tail call i32 @atoi(i8* %14)
store i32 %23, i32* %3
%24 = icmp ugt i32 %23, 60
br i1 %24, label %25, label %27
25: ; preds = %22
store i32 1, i32* %4
br label %27
26: ; preds = %11
store i32 -3, i32* %3
br label %27
27: ; preds = %22, %17, %25, %21, %26
ret void
}