#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*/ exit(int);
int /*<<< orphan*/ func(char **);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ spawnme();
int main(int argc, char *argv[]) {
  int blah = 0;
  if (argc != 3) {
    printf("2 args yo.\n");
    exit(1);
  }
  if (argc == 3) {
    func(argv);
  }
  if (blah == 1)
    spawnme();
  else
    printf("wut?\n");
  exit(1);
}


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)
movl   $0x0,-0x14(%rbp)
cmpl   $0x3,-0x8(%rbp)
je     117d <main+0x3d>
lea    0xe92(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
cmpl   $0x3,-0x8(%rbp)
jne    1190 <main+0x50>
mov    -0x10(%rbp),%rdi
call   1050 <func@plt>
cmpl   $0x1,-0x14(%rbp)
jne    11a6 <main+0x66>
mov    $0x0,%al
call   1040 <spawnme@plt>
jmp    11b2 <main+0x72>
lea    0xe5f(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
cmp    $0x3,%edi
jne    1147 <main+0x17>
mov    %rsi,%rdi
call   1040 <func@plt>
lea    0xebb(%rip),%rdi
jmp    114e <main+0x1e>
lea    0xeb7(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"2 args yo.\0A\00"
@.str.1 = [6 x i8] c"wut?\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
%7 = load i32, i32* %4
%8 = icmp ne i32 %7, 3
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%11 = call i32 @exit(i32 1)
unreachable
12: ; preds = %2
%13 = load i32, i32* %4
%14 = icmp eq i32 %13, 3
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = load i8**, i8*** %5
%17 = call i32 @func(i8** %16)
br label %18
18: ; preds = %15, %12
%19 = load i32, i32* %6
%20 = icmp eq i32 %19, 1
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = call i32 (...) @spawnme()
br label %25
23: ; preds = %18
%24 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %25
25: ; preds = %23, %21
%26 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@str = [5 x i8] c"wut?\00"
@str.2 = [11 x i8] c"2 args yo.\00"
define i32 @main(i32 %0, i8** %1) {
%3 = icmp eq i32 %0, 3
br i1 %3, label %7, label %4
4: ; preds = %2
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.2, i64 0, i64 0))
%6 = tail call i32 @exit(i32 1)
unreachable
7: ; preds = %2
%8 = tail call i32 @func(i8** %1)
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0))
%10 = tail call i32 @exit(i32 1)
unreachable
}