#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 atoi(char const *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ openDecoder(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
int main(int argc, const char *argv[]) {
  if (argc < 2) {
    fprintf(stderr, "Usage: openDecoder <number of runs>\n");
    exit(1);
  }
  int runs = atoi(argv[1]);
  fprintf(stdout,
          " _____                   ______                   _            \n");
  fprintf(stdout,
          "|  _  |                  |  _  \\                 | |           \n");
  fprintf(stdout,
          "| | | |_ __   ___ _ __   | | | |___  ___ ___   __| | ___ _ __  \n");
  fprintf(stdout, "| | | | '_ \\ / _ \\ '_ \\  | | | / _ \\/ __/ _ \\ / _` |/ "
                  "_ \\ '__| \n");
  fprintf(
      stdout,
      "\\ \\_/ / |_) |  __/ | | | | |/ /  __/ (_| (_) | (_| |  __/ |    \n");
  fprintf(stdout, " \\___/| .__/ \\___|_| |_| |___/ \\___|\\___\\___/ "
                  "\\__,_|\\___|_|    \n");
  fprintf(stdout,
          "      | |                                                      \n");
  fprintf(stdout, "      |_|\n");
  fprintf(stdout, "\n\n");
  printf("OpenDecoder Configuration:\n");
  printf("->Datapacket: %d bit\n->Coded Packet: %d bit\n->Coderate: "
         "2\n->Subdecoder: %d bit\n->Guardinterval: %d bit\n",
         3072, 6144, 16, 0);
  openDecoder(runs);
  fprintf(stdout, "OpenDecoder finished\nHave a nice day and much fish!\n");
  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   $0x2,-0x8(%rbp)
jge    118f <main+0x3f>
mov    0x2e69(%rip),%rax
mov    (%rax),%edi
lea    0xe80(%rip),%rsi
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1060 <atoi@plt>
mov    %eax,-0x14(%rbp)
mov    0x2e32(%rip),%rax
mov    (%rax),%edi
lea    0xe76(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2e1d(%rip),%rax
mov    (%rax),%edi
lea    0xea2(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2e08(%rip),%rax
mov    (%rax),%edi
lea    0xece(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2df3(%rip),%rax
mov    (%rax),%edi
lea    0xefa(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2dde(%rip),%rax
mov    (%rax),%edi
lea    0xf26(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2dc9(%rip),%rax
mov    (%rax),%edi
lea    0xf52(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2db4(%rip),%rax
mov    (%rax),%edi
lea    0xf7e(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2d9f(%rip),%rax
mov    (%rax),%edi
lea    0xfaa(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2d8a(%rip),%rax
mov    (%rax),%edi
lea    0xfa0(%rip),%rsi
call   1050 <fprintf@plt>
lea    0xf97(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfa5(%rip),%rdi
mov    $0xc00,%esi
mov    $0x1800,%edx
mov    $0x10,%ecx
xor    %r8d,%r8d
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%edi
call   1030 <openDecoder@plt>
mov    0x2d3f(%rip),%rax
mov    (%rax),%edi
lea    0xfdc(%rip),%rsi
call   1050 <fprintf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
cmp    $0x1,%edi
jle    1246 <main+0xe6>
mov    0x8(%rsi),%rdi
call   1070 <atoi@plt>
mov    %eax,%ebp
mov    0x2e5a(%rip),%rbx
mov    (%rbx),%edi
lea    0xe9e(%rip),%rsi
call   1060 <fprintf@plt>
mov    (%rbx),%edi
lea    0xed1(%rip),%rsi
call   1060 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf04(%rip),%rsi
call   1060 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf37(%rip),%rsi
call   1060 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf6a(%rip),%rsi
call   1060 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf9d(%rip),%rsi
call   1060 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfd0(%rip),%rsi
call   1060 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1003(%rip),%rsi
call   1060 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1000(%rip),%rsi
call   1060 <fprintf@plt>
lea    0x1094(%rip),%rdi
call   1040 <puts@plt>
lea    0xfeb(%rip),%rdi
mov    $0xc00,%esi
mov    $0x1800,%edx
mov    $0x10,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebp,%edi
call   1030 <openDecoder@plt>
mov    (%rbx),%edi
lea    0x102a(%rip),%rsi
call   1060 <fprintf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
mov    0x2d93(%rip),%rax
mov    (%rax),%edi
lea    0xdaa(%rip),%rsi
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [37 x i8] c"Usage: openDecoder <number of runs>\0A\00"
@stdout = global i32 0
@.str.1 = [65 x i8] c" _____ ______ _ \0A\00"
@.str.2 = [65 x i8] c"| _ | | _ \\ | | \0A\00"
@.str.3 = [65 x i8] c"| | | |_ __ ___ _ __ | | | |___ ___ ___ __| | ___ _ __ \0A\00"
@.str.4 = [65 x i8] c"| | | | '_ \\ / _ \\ '_ \\ | | | / _ \\/ __/ _ \\ / _` |/ _ \\ '__| \0A\00"
@.str.5 = [65 x i8] c"\\ \\_/ / |_) | __/ | | | | |/ / __/ (_| (_) | (_| | __/ | \0A\00"
@.str.6 = [65 x i8] c" \\___/| .__/ \\___|_| |_| |___/ \\___|\\___\\___/ \\__,_|\\___|_| \0A\00"
@.str.7 = [65 x i8] c" | | \0A\00"
@.str.8 = [11 x i8] c" |_|\0A\00"
@.str.9 = [3 x i8] c"\0A\0A\00"
@.str.10 = [28 x i8] c"OpenDecoder Configuration:\0A\00"
@.str.11 = [104 x i8] c"->Datapacket: %d bit\0A->Coded Packet: %d bit\0A->Coderate: 2\0A->Subdecoder: %d bit\0A->Guardinterval: %d bit\0A\00"
@.str.12 = [53 x i8] c"OpenDecoder finished\0AHave a nice day and much fish!\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
%7 = load i32, i32* %4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %13
9: ; preds = %2
%10 = load i32, i32* @stderr
%11 = call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%12 = call i32 @exit(i32 1)
unreachable
13: ; preds = %2
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds i8*, i8** %14, i64 1
%16 = load i8*, i8** %15
%17 = call i32 @atoi(i8* %16)
store i32 %17, i32* %6
%18 = load i32, i32* @stdout
%19 = call i32 @fprintf(i32 %18, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.1, i64 0, i64 0))
%20 = load i32, i32* @stdout
%21 = call i32 @fprintf(i32 %20, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.2, i64 0, i64 0))
%22 = load i32, i32* @stdout
%23 = call i32 @fprintf(i32 %22, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.3, i64 0, i64 0))
%24 = load i32, i32* @stdout
%25 = call i32 @fprintf(i32 %24, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.4, i64 0, i64 0))
%26 = load i32, i32* @stdout
%27 = call i32 @fprintf(i32 %26, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.5, i64 0, i64 0))
%28 = load i32, i32* @stdout
%29 = call i32 @fprintf(i32 %28, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.6, i64 0, i64 0))
%30 = load i32, i32* @stdout
%31 = call i32 @fprintf(i32 %30, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.7, i64 0, i64 0))
%32 = load i32, i32* @stdout
%33 = call i32 @fprintf(i32 %32, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0))
%34 = load i32, i32* @stdout
%35 = call i32 @fprintf(i32 %34, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.10, i64 0, i64 0))
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([104 x i8], [104 x i8]* @.str.11, i64 0, i64 0), i32 3072, i32 6144, i32 16, i32 0)
%38 = load i32, i32* %6
%39 = call i32 @openDecoder(i32 %38)
%40 = load i32, i32* @stdout
%41 = call i32 @fprintf(i32 %40, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.12, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [37 x i8] c"Usage: openDecoder <number of runs>\0A\00"
@stdout = global i32 0
@.str.1 = [65 x i8] c" _____ ______ _ \0A\00"
@.str.2 = [65 x i8] c"| _ | | _ \\ | | \0A\00"
@.str.3 = [65 x i8] c"| | | |_ __ ___ _ __ | | | |___ ___ ___ __| | ___ _ __ \0A\00"
@.str.4 = [65 x i8] c"| | | | '_ \\ / _ \\ '_ \\ | | | / _ \\/ __/ _ \\ / _` |/ _ \\ '__| \0A\00"
@.str.5 = [65 x i8] c"\\ \\_/ / |_) | __/ | | | | |/ / __/ (_| (_) | (_| | __/ | \0A\00"
@.str.6 = [65 x i8] c" \\___/| .__/ \\___|_| |_| |___/ \\___|\\___\\___/ \\__,_|\\___|_| \0A\00"
@.str.7 = [65 x i8] c" | | \0A\00"
@.str.8 = [11 x i8] c" |_|\0A\00"
@.str.9 = [3 x i8] c"\0A\0A\00"
@.str.11 = [104 x i8] c"->Datapacket: %d bit\0A->Coded Packet: %d bit\0A->Coderate: 2\0A->Subdecoder: %d bit\0A->Guardinterval: %d bit\0A\00"
@.str.12 = [53 x i8] c"OpenDecoder finished\0AHave a nice day and much fish!\0A\00"
@str = [27 x i8] c"OpenDecoder Configuration:\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %4, label %8
4: ; preds = %2
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @exit(i32 1)
unreachable
8: ; preds = %2
%9 = getelementptr inbounds i8*, i8** %1, i64 1
%10 = load i8*, i8** %9
%11 = tail call i32 @atoi(i8* %10)
%12 = load i32, i32* @stdout
%13 = tail call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.1, i64 0, i64 0))
%14 = load i32, i32* @stdout
%15 = tail call i32 @fprintf(i32 %14, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.2, i64 0, i64 0))
%16 = load i32, i32* @stdout
%17 = tail call i32 @fprintf(i32 %16, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.3, i64 0, i64 0))
%18 = load i32, i32* @stdout
%19 = tail call i32 @fprintf(i32 %18, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.4, i64 0, i64 0))
%20 = load i32, i32* @stdout
%21 = tail call i32 @fprintf(i32 %20, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.5, i64 0, i64 0))
%22 = load i32, i32* @stdout
%23 = tail call i32 @fprintf(i32 %22, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.6, i64 0, i64 0))
%24 = load i32, i32* @stdout
%25 = tail call i32 @fprintf(i32 %24, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.7, i64 0, i64 0))
%26 = load i32, i32* @stdout
%27 = tail call i32 @fprintf(i32 %26, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0))
%28 = load i32, i32* @stdout
%29 = tail call i32 @fprintf(i32 %28, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str, i64 0, i64 0))
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([104 x i8], [104 x i8]* @.str.11, i64 0, i64 0), i32 3072, i32 6144, i32 16, i32 0)
%32 = tail call i32 @openDecoder(i32 %11)
%33 = load i32, i32* @stdout
%34 = tail call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.12, i64 0, i64 0))
ret i32 0
}