#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 */
scalar_t__ _c(char *, char *);
int /*<<< orphan*/ printf(char *);
int helpw(int argc, char **argv) {
  if (argc == 8 && _c(argv[1], "my") && _c(argv[2], "os") &&
      _c(argv[3], "defaulted") && _c(argv[4], "me") && _c(argv[5], "to") &&
      _c(argv[6], "this") && _c(argv[7], "shell")) {
    printf("Blame the developer of your OS.\n");
    return 1;
  } else
    return 0;
}


x86 assembly (clang, -O0):
<helpw>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x8,-0x8(%rbp)
jne    1223 <helpw+0x103>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xeb8(%rip),%rsi
call   1030 <_c@plt>
cmp    $0x0,%rax
je     1223 <helpw+0x103>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe9d(%rip),%rsi
call   1030 <_c@plt>
cmp    $0x0,%rax
je     1223 <helpw+0x103>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
lea    0xe82(%rip),%rsi
call   1030 <_c@plt>
cmp    $0x0,%rax
je     1223 <helpw+0x103>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
lea    0xe6e(%rip),%rsi
call   1030 <_c@plt>
cmp    $0x0,%rax
je     1223 <helpw+0x103>
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%rdi
lea    0xe53(%rip),%rsi
call   1030 <_c@plt>
cmp    $0x0,%rax
je     1223 <helpw+0x103>
mov    -0x10(%rbp),%rax
mov    0x30(%rax),%rdi
lea    0xe38(%rip),%rsi
call   1030 <_c@plt>
cmp    $0x0,%rax
je     1223 <helpw+0x103>
mov    -0x10(%rbp),%rax
mov    0x38(%rax),%rdi
lea    0xe1f(%rip),%rsi
call   1030 <_c@plt>
cmp    $0x0,%rax
je     1223 <helpw+0x103>
lea    0xe0f(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    122a <helpw+0x10a>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<helpw>:
push   %rbp
push   %rbx
push   %rax
xor    %ebp,%ebp
cmp    $0x8,%edi
jne    11d9 <helpw+0xb9>
mov    %rsi,%rbx
mov    0x8(%rsi),%rdi
lea    0xec4(%rip),%rsi
call   1040 <_c@plt>
test   %rax,%rax
je     11d9 <helpw+0xb9>
mov    0x10(%rbx),%rdi
lea    0xeae(%rip),%rsi
call   1040 <_c@plt>
test   %rax,%rax
je     11d9 <helpw+0xb9>
mov    0x18(%rbx),%rdi
lea    0xe9c(%rip),%rsi
call   1040 <_c@plt>
test   %rax,%rax
je     11d9 <helpw+0xb9>
mov    0x20(%rbx),%rdi
lea    0xe91(%rip),%rsi
call   1040 <_c@plt>
test   %rax,%rax
je     11d9 <helpw+0xb9>
mov    0x28(%rbx),%rdi
lea    0xe7f(%rip),%rsi
call   1040 <_c@plt>
test   %rax,%rax
je     11d9 <helpw+0xb9>
mov    0x30(%rbx),%rdi
lea    0xe6d(%rip),%rsi
call   1040 <_c@plt>
test   %rax,%rax
je     11d9 <helpw+0xb9>
mov    0x38(%rbx),%rdi
lea    0xe5d(%rip),%rsi
call   1040 <_c@plt>
test   %rax,%rax
je     11d9 <helpw+0xb9>
lea    0xe52(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"my\00"
@.str.1 = [3 x i8] c"os\00"
@.str.2 = [10 x i8] c"defaulted\00"
@.str.3 = [3 x i8] c"me\00"
@.str.4 = [3 x i8] c"to\00"
@.str.5 = [5 x i8] c"this\00"
@.str.6 = [6 x i8] c"shell\00"
@.str.7 = [33 x i8] c"Blame the developer of your OS.\0A\00"
define i32 @helpw(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = icmp eq i32 %6, 8
br i1 %7, label %8, label %52
8: ; preds = %2
%9 = load i8**, i8*** %5
%10 = getelementptr inbounds i8*, i8** %9, i64 1
%11 = load i8*, i8** %10
%12 = call i64 @_c(i8* %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %52
14: ; preds = %8
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 2
%17 = load i8*, i8** %16
%18 = call i64 @_c(i8* %17, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %52
20: ; preds = %14
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 3
%23 = load i8*, i8** %22
%24 = call i64 @_c(i8* %23, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %52
26: ; preds = %20
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 4
%29 = load i8*, i8** %28
%30 = call i64 @_c(i8* %29, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %52
32: ; preds = %26
%33 = load i8**, i8*** %5
%34 = getelementptr inbounds i8*, i8** %33, i64 5
%35 = load i8*, i8** %34
%36 = call i64 @_c(i8* %35, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %52
38: ; preds = %32
%39 = load i8**, i8*** %5
%40 = getelementptr inbounds i8*, i8** %39, i64 6
%41 = load i8*, i8** %40
%42 = call i64 @_c(i8* %41, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%43 = icmp ne i64 %42, 0
br i1 %43, label %44, label %52
44: ; preds = %38
%45 = load i8**, i8*** %5
%46 = getelementptr inbounds i8*, i8** %45, i64 7
%47 = load i8*, i8** %46
%48 = call i64 @_c(i8* %47, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%49 = icmp ne i64 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %44
%51 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0))
store i32 1, i32* %3
br label %53
52: ; preds = %44, %38, %32, %26, %20, %14, %8, %2
store i32 0, i32* %3
br label %53
53: ; preds = %52, %50
%54 = load i32, i32* %3
ret i32 %54
}

LLVM IR (-O2):
@.str = [3 x i8] c"my\00"
@.str.1 = [3 x i8] c"os\00"
@.str.2 = [10 x i8] c"defaulted\00"
@.str.3 = [3 x i8] c"me\00"
@.str.4 = [3 x i8] c"to\00"
@.str.5 = [5 x i8] c"this\00"
@.str.6 = [6 x i8] c"shell\00"
@str = [32 x i8] c"Blame the developer of your OS.\00"
define i32 @helpw(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 8
br i1 %3, label %4, label %41
4: ; preds = %2
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i64 @_c(i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
br i1 %8, label %41, label %9
9: ; preds = %4
%10 = getelementptr inbounds i8*, i8** %1, i64 2
%11 = load i8*, i8** %10
%12 = tail call i64 @_c(i8* %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %41, label %14
14: ; preds = %9
%15 = getelementptr inbounds i8*, i8** %1, i64 3
%16 = load i8*, i8** %15
%17 = tail call i64 @_c(i8* %16, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %41, label %19
19: ; preds = %14
%20 = getelementptr inbounds i8*, i8** %1, i64 4
%21 = load i8*, i8** %20
%22 = tail call i64 @_c(i8* %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %41, label %24
24: ; preds = %19
%25 = getelementptr inbounds i8*, i8** %1, i64 5
%26 = load i8*, i8** %25
%27 = tail call i64 @_c(i8* %26, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %41, label %29
29: ; preds = %24
%30 = getelementptr inbounds i8*, i8** %1, i64 6
%31 = load i8*, i8** %30
%32 = tail call i64 @_c(i8* %31, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %41, label %34
34: ; preds = %29
%35 = getelementptr inbounds i8*, i8** %1, i64 7
%36 = load i8*, i8** %35
%37 = tail call i64 @_c(i8* %36, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %41, label %39
39: ; preds = %34
%40 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str, i64 0, i64 0))
br label %41
41: ; preds = %2, %4, %9, %14, %19, %24, %29, %34, %39
%42 = phi i32 [ 1, %39 ], [ 0, %34 ], [ 0, %29 ], [ 0, %24 ], [ 0, %19 ], [ 0, %14 ], [ 0, %9 ], [ 0, %4 ], [ 0, %2 ]
ret i32 %42
}