#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*/ get_arguments(int, char **);
int /*<<< orphan*/ printf(char *);
int main(int argc, char *argv[]) {
  if (argc < 2) {
    printf("\nWelcome to mod!\nA litte small useless modulizer\nwritten with "
           "<3 in C by willeponken.\nThere was no arguments specified.\nPlease "
           "re-run mod with arguments.\n\nAvailable arguments:\n-c [start] "
           "[end], ex: '-c 1 100' will count all numbers from 1 to 100.\n-m "
           "[mod], ex: '-m 4 5' will modulize with 4 and 5.\n\n");
  } else {
    printf("\nWelcome to mod!\nA litte small useless modulizer\nwritten with "
           "<3 in C by willeponken.\n");
    get_arguments(argc, argv);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    1151 <main+0x31>
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
jmp    1169 <main+0x49>
lea    0xfd4(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1040 <get_arguments@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
cmp    $0x1,%edi
jg     1136 <main+0x16>
lea    0xf27(%rip),%rdi
call   1030 <puts@plt>
jmp    1151 <main+0x31>
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0xebe(%rip),%rdi
call   1030 <puts@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
call   1040 <get_arguments@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [300 x i8] c"\0AWelcome to mod!\0AA litte small useless modulizer\0Awritten with <3 in C by willeponken.\0AThere was no arguments specified.\0APlease re-run mod with arguments.\0A\0AAvailable arguments:\0A-c [start] [end], ex: '-c 1 100' will count all numbers from 1 to 100.\0A-m [mod], ex: '-m 4 5' will modulize with 4 and 5.\0A\0A\00"
@.str.1 = [87 x i8] c"\0AWelcome to mod!\0AA litte small useless modulizer\0Awritten with <3 in C by willeponken.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = icmp slt i32 %6, 2
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @printf(i8* getelementptr inbounds ([300 x i8], [300 x i8]* @.str, i64 0, i64 0))
br label %15
10: ; preds = %2
%11 = call i32 @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.1, i64 0, i64 0))
%12 = load i32, i32* %4
%13 = load i8**, i8*** %5
%14 = call i32 @get_arguments(i32 %12, i8** %13)
br label %15
15: ; preds = %10, %8
ret i32 0
}

LLVM IR (-O2):
@str = [86 x i8] c"\0AWelcome to mod!\0AA litte small useless modulizer\0Awritten with <3 in C by willeponken.\00"
@str.2 = [299 x i8] c"\0AWelcome to mod!\0AA litte small useless modulizer\0Awritten with <3 in C by willeponken.\0AThere was no arguments specified.\0APlease re-run mod with arguments.\0A\0AAvailable arguments:\0A-c [start] [end], ex: '-c 1 100' will count all numbers from 1 to 100.\0A-m [mod], ex: '-m 4 5' will modulize with 4 and 5.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([299 x i8], [299 x i8]* @str.2, i64 0, i64 0))
br label %9
6: ; preds = %2
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @str, i64 0, i64 0))
%8 = tail call i32 @get_arguments(i32 %0, i8** %1)
br label %9
9: ; preds = %6, %4
ret i32 0
}