#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*/ printf(char *, char *, char *, char *);
void usage(char *cmd) {
  printf("Two ways of running this program: simulate and actual:\n\n"
         "To simulate the input and skip writing output, provide:\n"
         "    1) the degree of coefficient\n"
         "    2) the number of data points\n"
         "    3) the number of repetitions to run\n"
         "actual numbers are randomly generated between -1.0 and 1.0, e.g.:\n"
         "    %s -d 1000 -p 100 -r 10\n\n"
         "To use the program to actually calculate output for set input, "
         "please provide the filenames for:\n"
         "    1) -c, the coefficients\n"
         "    2) -x, the input points\n"
         "    3) -y, the output points\n"
         "each file should start with cardinality as a 4-byte integer, e.g.:\n"
         "    %s -c c.in -x x.in -y y.out\n\n"
         "If the number of threads to use is provided (with -t), the program "
         "will attempt to use multiple threads, e.g.:\n"
         "    %s -d 1000 -p 100 -r 10 -t 4\n\n",
         cmd, cmd, cmd);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x8(%rbp),%rdx
mov    -0x8(%rbp),%rcx
lea    0xed1(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
mov    %rdi,%rcx
lea    0xee6(%rip),%rdi
mov    %rcx,%rsi
mov    %rcx,%rdx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [741 x i8] c"Two ways of running this program: simulate and actual:\0A\0ATo simulate the input and skip writing output, provide:\0A 1) the degree of coefficient\0A 2) the number of data points\0A 3) the number of repetitions to run\0Aactual numbers are randomly generated between -1.0 and 1.0, e.g.:\0A %s -d 1000 -p 100 -r 10\0A\0ATo use the program to actually calculate output for set input, please provide the filenames for:\0A 1) -c, the coefficients\0A 2) -x, the input points\0A 3) -y, the output points\0Aeach file should start with cardinality as a 4-byte integer, e.g.:\0A %s -c c.in -x x.in -y y.out\0A\0AIf the number of threads to use is provided (with -t), the program will attempt to use multiple threads, e.g.:\0A %s -d 1000 -p 100 -r 10 -t 4\0A\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i8*, i8** %2
%5 = load i8*, i8** %2
%6 = call i32 @printf(i8* getelementptr inbounds ([741 x i8], [741 x i8]* @.str, i64 0, i64 0), i8* %3, i8* %4, i8* %5)
ret void
}

LLVM IR (-O2):
@.str = [741 x i8] c"Two ways of running this program: simulate and actual:\0A\0ATo simulate the input and skip writing output, provide:\0A 1) the degree of coefficient\0A 2) the number of data points\0A 3) the number of repetitions to run\0Aactual numbers are randomly generated between -1.0 and 1.0, e.g.:\0A %s -d 1000 -p 100 -r 10\0A\0ATo use the program to actually calculate output for set input, please provide the filenames for:\0A 1) -c, the coefficients\0A 2) -x, the input points\0A 3) -y, the output points\0Aeach file should start with cardinality as a 4-byte integer, e.g.:\0A %s -c c.in -x x.in -y y.out\0A\0AIf the number of threads to use is provided (with -t), the program will attempt to use multiple threads, e.g.:\0A %s -d 1000 -p 100 -r 10 -t 4\0A\0A\00"
define void @usage(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([741 x i8], [741 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %0, i8* %0)
ret void
}