#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 EXIT_SUCCESS;
double cbrt(double);
double exp(double);
double exp2(double);
double expm1(double);
double hypot(double, int);
double log(double);
double log10(double);
double log1p(double);
double log2(double);
double modf(double, double *);
double pow(double, int);
int /*<<< orphan*/ printf(char *, double);
double sqrt(double);
int main(int argc, char *argv[]) {
  double param = 5;
  int n = 2;
  printf("param is :%f\n", param);
  printf("n is :%d\n", n);
  printf("exp (param)"
         " is: %f\n",
         exp(param));
  printf("exp2 (param)"
         " is: %f\n",
         exp2(param));
  printf("expm1 (param)"
         " is: %f\n",
         expm1(param));
  printf("log (param)"
         " is: %f\n",
         log(param));
  printf("log10 (param)"
         " is: %f\n",
         log10(param));
  printf("log2 (param)"
         " is: %f\n",
         log2(param));
  printf("log1p (param)"
         " is: %f\n",
         log1p(param));
  printf("pow (param, n)"
         " is: %f\n",
         pow(param, n));
  printf("sqrt (param)"
         " is: %f\n",
         sqrt(param));
  printf("cbrt (param)"
         " is: %f\n",
         cbrt(param));
  printf("hypot (param, n)"
         " is: %f\n",
         hypot(param, n));
  printf("modf (PI, &param)"
         " is: %f\n",
         modf(3.14159265, &param));
  return EXIT_SUCCESS;
}


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)
movsd  0xe1a(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movl   $0x2,-0x1c(%rbp)
movsd  -0x18(%rbp),%xmm0
lea    0xe0a(%rip),%rdi
call   1040 <printf@plt>
cvtsi2sdl -0x1c(%rbp),%xmm0
lea    0xe07(%rip),%rdi
call   1040 <printf@plt>
movsd  -0x18(%rbp),%xmm0
call   1080 <exp@plt>
lea    0xdfb(%rip),%rdi
call   1040 <printf@plt>
movsd  -0x18(%rbp),%xmm0
call   1050 <exp2@plt>
lea    0xdf9(%rip),%rdi
call   1040 <printf@plt>
movsd  -0x18(%rbp),%xmm0
call   10c0 <expm1@plt>
lea    0xdf8(%rip),%rdi
call   1040 <printf@plt>
movsd  -0x18(%rbp),%xmm0
call   10a0 <log@plt>
lea    0xdf8(%rip),%rdi
call   1040 <printf@plt>
movsd  -0x18(%rbp),%xmm0
call   10d0 <log10@plt>
lea    0xdf6(%rip),%rdi
call   1040 <printf@plt>
movsd  -0x18(%rbp),%xmm0
call   1030 <log2@plt>
lea    0xdf6(%rip),%rdi
call   1040 <printf@plt>
movsd  -0x18(%rbp),%xmm0
call   10f0 <log1p@plt>
lea    0xdf5(%rip),%rdi
call   1040 <printf@plt>
movsd  -0x18(%rbp),%xmm0
mov    -0x1c(%rbp),%edi
call   10b0 <pow@plt>
lea    0xdf2(%rip),%rdi
call   1040 <printf@plt>
movsd  -0x18(%rbp),%xmm0
call   10e0 <sqrt@plt>
lea    0xdf3(%rip),%rdi
call   1040 <printf@plt>
movsd  -0x18(%rbp),%xmm0
call   1090 <cbrt@plt>
lea    0xdf2(%rip),%rdi
call   1040 <printf@plt>
movsd  -0x18(%rbp),%xmm0
mov    -0x1c(%rbp),%edi
call   1070 <hypot@plt>
lea    0xdee(%rip),%rdi
call   1040 <printf@plt>
movsd  0xce4(%rip),%xmm0
lea    -0x18(%rbp),%rdi
call   1060 <modf@plt>
lea    0xdea(%rip),%rdi
call   1040 <printf@plt>
mov    0x2ca8(%rip),%rax
mov    (%rax),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movabs $0x4014000000000000,%rax
mov    %rax,(%rsp)
lea    0xec2(%rip),%rdi
movsd  0xe72(%rip),%xmm0
call   1030 <printf@plt>
lea    0xebc(%rip),%rdi
movsd  0xe66(%rip),%xmm0
call   1030 <printf@plt>
lea    0xeb2(%rip),%rdi
movsd  0xe5a(%rip),%xmm0
call   1030 <printf@plt>
lea    0xeb2(%rip),%rdi
movsd  0xe4e(%rip),%xmm0
call   1030 <printf@plt>
movsd  0xe29(%rip),%xmm0
call   1080 <expm1@plt>
lea    0xea6(%rip),%rdi
call   1030 <printf@plt>
lea    0xeb0(%rip),%rdi
movsd  0xe29(%rip),%xmm0
call   1030 <printf@plt>
lea    0xeb0(%rip),%rdi
movsd  0xe1d(%rip),%xmm0
call   1030 <printf@plt>
lea    0xeb2(%rip),%rdi
movsd  0xe11(%rip),%xmm0
call   1030 <printf@plt>
movsd  0xdd4(%rip),%xmm0
call   1090 <log1p@plt>
lea    0xea6(%rip),%rdi
call   1030 <printf@plt>
movsd  0xdbb(%rip),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
lea    0xe9e(%rip),%rdi
call   1030 <printf@plt>
lea    0xea9(%rip),%rdi
movsd  0xdce(%rip),%xmm0
call   1030 <printf@plt>
movsd  0xd89(%rip),%xmm0
call   1060 <cbrt@plt>
lea    0xe9d(%rip),%rdi
call   1030 <printf@plt>
movsd  0xd70(%rip),%xmm0
mov    $0x2,%edi
call   1050 <hypot@plt>
lea    0xe94(%rip),%rdi
call   1030 <printf@plt>
movsd  0xd92(%rip),%xmm0
mov    %rsp,%rdi
call   1040 <modf@plt>
lea    0xe91(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d17(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [14 x i8] c"param is :%f\0A\00"
@.str.1 = [10 x i8] c"n is :%d\0A\00"
@.str.2 = [20 x i8] c"exp (param) is: %f\0A\00"
@.str.3 = [21 x i8] c"exp2 (param) is: %f\0A\00"
@.str.4 = [22 x i8] c"expm1 (param) is: %f\0A\00"
@.str.5 = [20 x i8] c"log (param) is: %f\0A\00"
@.str.6 = [22 x i8] c"log10 (param) is: %f\0A\00"
@.str.7 = [21 x i8] c"log2 (param) is: %f\0A\00"
@.str.8 = [22 x i8] c"log1p (param) is: %f\0A\00"
@.str.9 = [23 x i8] c"pow (param, n) is: %f\0A\00"
@.str.10 = [21 x i8] c"sqrt (param) is: %f\0A\00"
@.str.11 = [21 x i8] c"cbrt (param) is: %f\0A\00"
@.str.12 = [25 x i8] c"hypot (param, n) is: %f\0A\00"
@.str.13 = [26 x i8] c"modf (PI, &param) is: %f\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca double
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store double 5.000000e+00, double* %6
store i32 2, i32* %7
%8 = load double, double* %6
%9 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), double %8)
%10 = load i32, i32* %7
%11 = sitofp i32 %10 to double
%12 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), double %11)
%13 = load double, double* %6
%14 = call double @exp(double %13)
%15 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), double %14)
%16 = load double, double* %6
%17 = call double @exp2(double %16)
%18 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), double %17)
%19 = load double, double* %6
%20 = call double @expm1(double %19)
%21 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), double %20)
%22 = load double, double* %6
%23 = call double @log(double %22)
%24 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), double %23)
%25 = load double, double* %6
%26 = call double @log10(double %25)
%27 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), double %26)
%28 = load double, double* %6
%29 = call double @log2(double %28)
%30 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), double %29)
%31 = load double, double* %6
%32 = call double @log1p(double %31)
%33 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), double %32)
%34 = load double, double* %6
%35 = load i32, i32* %7
%36 = call double @pow(double %34, i32 %35)
%37 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0), double %36)
%38 = load double, double* %6
%39 = call double @sqrt(double %38)
%40 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), double %39)
%41 = load double, double* %6
%42 = call double @cbrt(double %41)
%43 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), double %42)
%44 = load double, double* %6
%45 = load i32, i32* %7
%46 = call double @hypot(double %44, i32 %45)
%47 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0), double %46)
%48 = call double @modf(double 0x400921FB53C8D4F1, double* %6)
%49 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.13, i64 0, i64 0), double %48)
%50 = load i32, i32* @EXIT_SUCCESS
ret i32 %50
}

LLVM IR (-O2):
@.str = [14 x i8] c"param is :%f\0A\00"
@.str.1 = [10 x i8] c"n is :%d\0A\00"
@.str.2 = [20 x i8] c"exp (param) is: %f\0A\00"
@.str.3 = [21 x i8] c"exp2 (param) is: %f\0A\00"
@.str.4 = [22 x i8] c"expm1 (param) is: %f\0A\00"
@.str.5 = [20 x i8] c"log (param) is: %f\0A\00"
@.str.6 = [22 x i8] c"log10 (param) is: %f\0A\00"
@.str.7 = [21 x i8] c"log2 (param) is: %f\0A\00"
@.str.8 = [22 x i8] c"log1p (param) is: %f\0A\00"
@.str.9 = [23 x i8] c"pow (param, n) is: %f\0A\00"
@.str.10 = [21 x i8] c"sqrt (param) is: %f\0A\00"
@.str.11 = [21 x i8] c"cbrt (param) is: %f\0A\00"
@.str.12 = [25 x i8] c"hypot (param, n) is: %f\0A\00"
@.str.13 = [26 x i8] c"modf (PI, &param) is: %f\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca double
%4 = bitcast double* %3 to i8*
store double 5.000000e+00, double* %3
%5 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), double 5.000000e+00)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), double 2.000000e+00)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), double 0x40628D389970338F)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), double 3.200000e+01)
%9 = tail call double @expm1(double 5.000000e+00)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), double %9)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), double 0x3FF9C041F7ED8D33)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), double 0x3FE65DF657B04301)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), double 0x4002934F0979A371)
%14 = tail call double @log1p(double 5.000000e+00)
%15 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), double %14)
%16 = tail call double @pow(double 5.000000e+00, i32 2)
%17 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0), double %16)
%18 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), double 0x4001E3779B97F4A8)
%19 = tail call double @cbrt(double 5.000000e+00)
%20 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), double %19)
%21 = tail call double @hypot(double 5.000000e+00, i32 2)
%22 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0), double %21)
%23 = call double @modf(double 0x400921FB53C8D4F1, double* %3)
%24 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.13, i64 0, i64 0), double %23)
%25 = load i32, i32* @EXIT_SUCCESS
ret i32 %25
}