#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 /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
int main(int argc, char *argv[]) {
  if (argc == 1) {
    char *usage =
        "Usage: killall [OPTION]... [--] NAME...\n 	killall -l, --list\n "
        "	killall -V, --version\n 	\n 	-e,--exact          "
        "require exact match for very long names\n 	-I,--ignore-case    "
        "case insensitive process name match\n 	-g,--process-group  kill "
        "process group instead of process\n 	-y,--younger-than   kill "
        "processes younger than TIME\n 	-o,--older-than     kill processes "
        "older than TIME\n 	-i,--interactive    ask for confirmation "
        "before killing\n 	-l,--list           list all known signal "
        "names\n 	-q,--quiet          don't print complaints\n 	"
        "-r,--regexp         interpret NAME as an extended regular "
        "expression\n 	-s,--signal SIGNAL  send this signal instead of "
        "SIGTERM\n 	-u,--user USER      kill only process(es) running as "
        "USER\n 	-v,--verbose        report if the signal was "
        "successfully sent\n 	-V,--version        display version "
        "information\n 	-w,--wait           wait for processes to die\n";
    fprintf(stderr, "%s", usage);
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    1160 <main+0x50>
lea    0xec9(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0x2e9e(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rdx
lea    0x1223(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1167 <main+0x57>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
xor    %eax,%eax
cmp    $0x1,%edi
jne    113d <main+0x2d>
push   %rax
mov    0x2ec1(%rip),%rax
mov    (%rax),%edi
lea    0x124a(%rip),%rsi
lea    0xed1(%rip),%rdx
call   1030 <fprintf@plt>
mov    $0x1,%eax
add    $0x8,%rsp
ret

LLVM IR (-O0):
@.str = [882 x i8] c"Usage: killall [OPTION]... [--] NAME...\0A \09killall -l, --list\0A \09killall -V, --version\0A \09\0A \09-e,--exact require exact match for very long names\0A \09-I,--ignore-case case insensitive process name match\0A \09-g,--process-group kill process group instead of process\0A \09-y,--younger-than kill processes younger than TIME\0A \09-o,--older-than kill processes older than TIME\0A \09-i,--interactive ask for confirmation before killing\0A \09-l,--list list all known signal names\0A \09-q,--quiet don't print complaints\0A \09-r,--regexp interpret NAME as an extended regular expression\0A \09-s,--signal SIGNAL send this signal instead of SIGTERM\0A \09-u,--user USER kill only process(es) running as USER\0A \09-v,--verbose report if the signal was successfully sent\0A \09-V,--version display version information\0A \09-w,--wait wait for processes to die\0A\00"
@stderr = global i32 0
@.str.1 = [3 x i8] c"%s\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = load i32, i32* %4
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %13
9: ; preds = %2
store i8* getelementptr inbounds ([882 x i8], [882 x i8]* @.str, i64 0, i64 0), i8** %6
%10 = load i32, i32* @stderr
%11 = load i8*, i8** %6
%12 = call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %11)
store i32 1, i32* %3
br label %14
13: ; preds = %2
store i32 0, i32* %3
br label %14
14: ; preds = %13, %9
%15 = load i32, i32* %3
ret i32 %15
}

LLVM IR (-O2):
@.str = [882 x i8] c"Usage: killall [OPTION]... [--] NAME...\0A \09killall -l, --list\0A \09killall -V, --version\0A \09\0A \09-e,--exact require exact match for very long names\0A \09-I,--ignore-case case insensitive process name match\0A \09-g,--process-group kill process group instead of process\0A \09-y,--younger-than kill processes younger than TIME\0A \09-o,--older-than kill processes older than TIME\0A \09-i,--interactive ask for confirmation before killing\0A \09-l,--list list all known signal names\0A \09-q,--quiet don't print complaints\0A \09-r,--regexp interpret NAME as an extended regular expression\0A \09-s,--signal SIGNAL send this signal instead of SIGTERM\0A \09-u,--user USER kill only process(es) running as USER\0A \09-v,--verbose report if the signal was successfully sent\0A \09-V,--version display version information\0A \09-w,--wait wait for processes to die\0A\00"
@stderr = global i32 0
@.str.1 = [3 x i8] c"%s\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = icmp eq i32 %0, 1
br i1 %3, label %4, label %7
4: ; preds = %2
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([882 x i8], [882 x i8]* @.str, i64 0, i64 0))
br label %7
7: ; preds = %2, %4
%8 = phi i32 [ 1, %4 ], [ 0, %2 ]
ret i32 %8
}