#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_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
void print_ceed_usage(int argc, char *argv[]) {
  printf("Usage: %s -p prj -i 192.168.99.100 -s 10000 -b\n", argv[0]);
  printf("	-i CODI ip address [default: 127.0.0.1 (linux) or "
         "192.168.99.100 (win/mac)]\n");
  printf("	-s CODI listening port [default: 10000]\n");
  printf("	-l list available build containers\n");
  printf("	-d container_id. Send command to container_id\n");
  printf("	-p prj_name [required]\n");
  printf("	-b build project [NOTE: -b and -c are mutually exclusive]\n");
  printf("	-c clean project [NOTE: -c and -b are mutually exclusive]\n");
  printf("	-t autotools project [NOTE: -t and -k and -m are mutually "
         "exclusive]\n");
  printf(
      "	-k cmake project [NOTE: -k and -t and -m are mutually exclusive]\n");
  printf("	-m target make makefile_target [NOTE: -m and -t and -k are "
         "mutually exclusive]\n");
  printf("	-g gen_cmd execute generic command\n");
  printf("	-r args generic command arguments\n");
  printf("	-e env environment variables\n");
  printf("	-h print this help menu\n");
  printf("	-v show ceed version\n");
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<print_ceed_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf25(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf41(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf58(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf7a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf85(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfe1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x101a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x104f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1092(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10a9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10bf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10d0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10dc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2dc3(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<print_ceed_usage>:
push   %rax
mov    (%rsi),%rsi
lea    0xec5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee7(%rip),%rdi
call   1030 <puts@plt>
lea    0xf28(%rip),%rdi
call   1030 <puts@plt>
lea    0xf45(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf80(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8c(%rip),%rdi
call   1030 <puts@plt>
lea    0xfbb(%rip),%rdi
call   1030 <puts@plt>
lea    0xfea(%rip),%rdi
call   1030 <puts@plt>
lea    0x1024(%rip),%rdi
call   1030 <puts@plt>
lea    0x105a(%rip),%rdi
call   1030 <puts@plt>
lea    0x109e(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b6(%rip),%rdi
call   1030 <puts@plt>
lea    0x10cd(%rip),%rdi
call   1030 <puts@plt>
lea    0x10df(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ec(%rip),%rdi
call   1030 <puts@plt>
mov    0x2de3(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [48 x i8] c"Usage: %s -p prj -i 192.168.99.100 -s 10000 -b\0A\00"
@.str.1 = [78 x i8] c"\09-i CODI ip address [default: 127.0.0.1 (linux) or 192.168.99.100 (win/mac)]\0A\00"
@.str.2 = [42 x i8] c"\09-s CODI listening port [default: 10000]\0A\00"
@.str.3 = [37 x i8] c"\09-l list available build containers\0A\00"
@.str.4 = [48 x i8] c"\09-d container_id. Send command to container_id\0A\00"
@.str.5 = [25 x i8] c"\09-p prj_name [required]\0A\00"
@.str.6 = [60 x i8] c"\09-b build project [NOTE: -b and -c are mutually exclusive]\0A\00"
@.str.7 = [60 x i8] c"\09-c clean project [NOTE: -c and -b are mutually exclusive]\0A\00"
@.str.8 = [71 x i8] c"\09-t autotools project [NOTE: -t and -k and -m are mutually exclusive]\0A\00"
@.str.9 = [67 x i8] c"\09-k cmake project [NOTE: -k and -t and -m are mutually exclusive]\0A\00"
@.str.10 = [81 x i8] c"\09-m target make makefile_target [NOTE: -m and -t and -k are mutually exclusive]\0A\00"
@.str.11 = [37 x i8] c"\09-g gen_cmd execute generic command\0A\00"
@.str.12 = [36 x i8] c"\09-r args generic command arguments\0A\00"
@.str.13 = [31 x i8] c"\09-e env environment variables\0A\00"
@.str.14 = [26 x i8] c"\09-h print this help menu\0A\00"
@.str.15 = [23 x i8] c"\09-v show ceed version\0A\00"
@EXIT_FAILURE = global i32 0
define void @print_ceed_usage(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = load i8**, i8*** %4
%6 = getelementptr inbounds i8*, i8** %5, i64 0
%7 = load i8*, i8** %6
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.6, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.7, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.8, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.9, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.10, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.11, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.13, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.14, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.15, i64 0, i64 0))
%24 = load i32, i32* @EXIT_FAILURE
%25 = call i32 @exit(i32 %24)
unreachable
}

LLVM IR (-O2):
@.str = [48 x i8] c"Usage: %s -p prj -i 192.168.99.100 -s 10000 -b\0A\00"
@EXIT_FAILURE = global i32 0
@str = [77 x i8] c"\09-i CODI ip address [default: 127.0.0.1 (linux) or 192.168.99.100 (win/mac)]\00"
@str.16 = [41 x i8] c"\09-s CODI listening port [default: 10000]\00"
@str.17 = [36 x i8] c"\09-l list available build containers\00"
@str.18 = [47 x i8] c"\09-d container_id. Send command to container_id\00"
@str.19 = [24 x i8] c"\09-p prj_name [required]\00"
@str.20 = [59 x i8] c"\09-b build project [NOTE: -b and -c are mutually exclusive]\00"
@str.21 = [59 x i8] c"\09-c clean project [NOTE: -c and -b are mutually exclusive]\00"
@str.22 = [70 x i8] c"\09-t autotools project [NOTE: -t and -k and -m are mutually exclusive]\00"
@str.23 = [66 x i8] c"\09-k cmake project [NOTE: -k and -t and -m are mutually exclusive]\00"
@str.24 = [80 x i8] c"\09-m target make makefile_target [NOTE: -m and -t and -k are mutually exclusive]\00"
@str.25 = [36 x i8] c"\09-g gen_cmd execute generic command\00"
@str.26 = [35 x i8] c"\09-r args generic command arguments\00"
@str.27 = [30 x i8] c"\09-e env environment variables\00"
@str.28 = [25 x i8] c"\09-h print this help menu\00"
@str.29 = [22 x i8] c"\09-v show ceed version\00"
define void @print_ceed_usage(i32 %0, i8** nocapture %1) {
%3 = load i8*, i8** %1
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.16, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.17, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.18, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.19, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.20, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.21, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.22, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.23, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str.24, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.25, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.26, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.27, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.28, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.29, i64 0, i64 0))
%20 = load i32, i32* @EXIT_FAILURE
%21 = tail call i32 @exit(i32 %20)
unreachable
}