#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 *);
void print_info(void) {
  printf("*****************************************************\n");
  printf("* Integralberechnungen durch Pi-Cluster             \n");
  printf("*****************************************************\n");
  printf("Command-Line-Optionen:                            \n");
  printf("-t <int>\tFestlegen der zu verwendenden Threads   \n");
  printf("-a <float>\tFestlegen der Integral-Untergrenze\n");
  printf("-b <float>\tFestlegen der Integral-Obergrenze\n");
  printf("-n <int>\tFestlegen der Trapezoid-Anzahl\n");
  printf("-f <int>\tFestlegen der zu integrierenden Funktion\n");
  printf("\t0 : f(x)= x^2\n");
  printf("\t1 : f(x)= 4/(1+x^2\n");
  printf("\t2 : f(x)= x/(1+e^x)\n");
  printf("\nDefaultwerte:\n");
  printf("a = 0.0, b = 1.0, n = 10000000, f = 0\n");
}


x86 assembly (clang, -O0):
<print_info>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf10(%rip),%rdi
call   1030 <printf@plt>
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf56(%rip),%rdi
call   1030 <printf@plt>
lea    0xf7d(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa0(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc2(%rip),%rdi
call   1030 <printf@plt>
lea    0xfdf(%rip),%rdi
call   1030 <printf@plt>
lea    0x1006(%rip),%rdi
call   1030 <printf@plt>
lea    0x100a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1013(%rip),%rdi
call   1030 <printf@plt>
lea    0x101d(%rip),%rdi
call   1030 <printf@plt>
lea    0x1021(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_info>:
push   %rbx
lea    0xf1d(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xed9(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xf30(%rip),%rdi
call   1030 <puts@plt>
lea    0xf57(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9f(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc0(%rip),%rdi
call   1030 <puts@plt>
lea    0xfdc(%rip),%rdi
call   1030 <puts@plt>
lea    0x1002(%rip),%rdi
call   1030 <puts@plt>
lea    0x1005(%rip),%rdi
call   1030 <puts@plt>
lea    0x100d(%rip),%rdi
call   1030 <puts@plt>
lea    0x1016(%rip),%rdi
call   1030 <puts@plt>
lea    0x1019(%rip),%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [55 x i8] c"*****************************************************\0A\00"
@.str.1 = [54 x i8] c"* Integralberechnungen durch Pi-Cluster \0A\00"
@.str.2 = [52 x i8] c"Command-Line-Optionen: \0A\00"
@.str.3 = [51 x i8] c"-t <int>\09Festlegen der zu verwendenden Threads \0A\00"
@.str.4 = [47 x i8] c"-a <float>\09Festlegen der Integral-Untergrenze\0A\00"
@.str.5 = [46 x i8] c"-b <float>\09Festlegen der Integral-Obergrenze\0A\00"
@.str.6 = [41 x i8] c"-n <int>\09Festlegen der Trapezoid-Anzahl\0A\00"
@.str.7 = [51 x i8] c"-f <int>\09Festlegen der zu integrierenden Funktion\0A\00"
@.str.8 = [16 x i8] c"\090 : f(x)= x^2\0A\00"
@.str.9 = [21 x i8] c"\091 : f(x)= 4/(1+x^2\0A\00"
@.str.10 = [22 x i8] c"\092 : f(x)= x/(1+e^x)\0A\00"
@.str.11 = [16 x i8] c"\0ADefaultwerte:\0A\00"
@.str.12 = [39 x i8] c"a = 0.0, b = 1.0, n = 10000000, f = 0\0A\00"
define void @print_info() {
%1 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.12, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str.13 = [53 x i8] c"* Integralberechnungen durch Pi-Cluster \00"
@str.14 = [54 x i8] c"*****************************************************\00"
@str.15 = [51 x i8] c"Command-Line-Optionen: \00"
@str.16 = [50 x i8] c"-t <int>\09Festlegen der zu verwendenden Threads \00"
@str.17 = [46 x i8] c"-a <float>\09Festlegen der Integral-Untergrenze\00"
@str.18 = [45 x i8] c"-b <float>\09Festlegen der Integral-Obergrenze\00"
@str.19 = [40 x i8] c"-n <int>\09Festlegen der Trapezoid-Anzahl\00"
@str.20 = [50 x i8] c"-f <int>\09Festlegen der zu integrierenden Funktion\00"
@str.21 = [15 x i8] c"\090 : f(x)= x^2\00"
@str.22 = [20 x i8] c"\091 : f(x)= 4/(1+x^2\00"
@str.23 = [21 x i8] c"\092 : f(x)= x/(1+e^x)\00"
@str.24 = [15 x i8] c"\0ADefaultwerte:\00"
@str.25 = [38 x i8] c"a = 0.0, b = 1.0, n = 10000000, f = 0\00"
define void @print_info() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.14, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.13, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.14, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.15, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.16, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.17, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.18, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.19, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.20, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.21, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.22, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.23, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.24, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.25, i64 0, i64 0))
ret void
}