#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 EXIT_FAILURE;
int EXIT_SUCCESS;
int /*<<< orphan*/ coreRun();
int /*<<< orphan*/ warning(char *, char *, char *, char *);
int task_core_run(int argc, char *argv[]) {
  if (argc != 3) {
    warning("usage: %s %s %s\n", argv[0], argv[1], argv[2]);
    return EXIT_FAILURE;
  }
  coreRun();
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<task_core_run>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
je     116d <task_core_run+0x4d>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rcx
lea    0xea9(%rip),%rdi
call   1030 <warning@plt>
mov    0x2e7d(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1180 <task_core_run+0x60>
mov    $0x0,%al
call   1040 <coreRun@plt>
mov    0x2e5d(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<task_core_run>:
push   %rax
cmp    $0x3,%edi
jne    1136 <task_core_run+0x16>
xor    %eax,%eax
call   1040 <coreRun@plt>
mov    0x2ea4(%rip),%rax
jmp    1157 <task_core_run+0x37>
mov    (%rsi),%rax
mov    0x8(%rsi),%rdx
mov    0x10(%rsi),%rcx
lea    0xeb8(%rip),%rdi
mov    %rax,%rsi
call   1030 <warning@plt>
mov    0x2e89(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [17 x i8] c"usage: %s %s %s\0A\00"
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @task_core_run(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 ne i32 %6, 3
br i1 %7, label %8, label %20
8: ; preds = %2
%9 = load i8**, i8*** %5
%10 = getelementptr inbounds i8*, i8** %9, i64 0
%11 = load i8*, i8** %10
%12 = load i8**, i8*** %5
%13 = getelementptr inbounds i8*, i8** %12, i64 1
%14 = load i8*, i8** %13
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 2
%17 = load i8*, i8** %16
%18 = call i32 @warning(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* %11, i8* %14, i8* %17)
%19 = load i32, i32* @EXIT_FAILURE
store i32 %19, i32* %3
br label %23
20: ; preds = %2
%21 = call i32 (...) @coreRun()
%22 = load i32, i32* @EXIT_SUCCESS
store i32 %22, i32* %3
br label %23
23: ; preds = %20, %8
%24 = load i32, i32* %3
ret i32 %24
}

LLVM IR (-O2):
@.str = [17 x i8] c"usage: %s %s %s\0A\00"
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @task_core_run(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 3
br i1 %3, label %11, label %4
4: ; preds = %2
%5 = load i8*, i8** %1
%6 = getelementptr inbounds i8*, i8** %1, i64 1
%7 = load i8*, i8** %6
%8 = getelementptr inbounds i8*, i8** %1, i64 2
%9 = load i8*, i8** %8
%10 = tail call i32 @warning(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* %5, i8* %7, i8* %9)
br label %13
11: ; preds = %2
%12 = tail call i32 (...) @coreRun()
br label %13
13: ; preds = %11, %4
%14 = phi i32* [ @EXIT_FAILURE, %4 ], [ @EXIT_SUCCESS, %11 ]
%15 = load i32, i32* %14
ret i32 %15
}