#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 */
double cbrt(unsigned int);
double ceil(unsigned int);
double cos(unsigned int);
double exp(unsigned int);
double fabs(unsigned int);
double floor(unsigned int);
double fmod(unsigned int, int);
double log(unsigned int);
double log10(unsigned int);
double pow(unsigned int, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, unsigned int *);
double sin(unsigned int);
double sqrt(unsigned int);
double tan(unsigned int);
int main(void) {
  unsigned int numero;
  printf("%s", "Inserire il numero: ");
  scanf("%u", &numero);
  printf("La radice quadrata di %u e' pari a %.2f\n", numero, sqrt(numero));
  printf("La radice cubica di %u e' pari a %.2f\n", numero, cbrt(numero));
  printf("Funzione esponenziale di %u e' pari a %.2f\n", numero, exp(numero));
  printf("Logaritmo naturale di x(in base e) di %u e' pari a %.2f\n", numero,
         log(numero));
  printf("Logaritmo di x x %u e' pari a %.2f\n", numero, log10(numero));
  printf(
      "Valore assoluto di x come numero in virgola mobile %u e' pari a %.2f\n",
      numero, fabs(numero));
  printf(
      "Arrotonda x all'intero piu piccolo non minore di x %u e' pari a %.2f\n",
      numero, ceil(numero));
  printf(
      "Arrotonda x all'intero piu grande non maggiore di x %u e' pari a %.2f\n",
      numero, floor(numero));
  printf("x elevato alla potenza y (x^y) %u e' pari a %.2f\n", numero,
         pow(numero, 5));
  printf("resto x/y come numero in virgola mobile %u e' pari a %.2f\n", numero,
         fmod(numero, 3));
  printf(
      "funzione trigonometrica seno di x (x in radiandi) %u e' pari a %.2f\n",
      numero, sin(numero));
  printf(
      "Funzione trigonometrica coseno di x (x in radianti) %u e' pari a %.2f\n",
      numero, cos(numero));
  printf("funzione trigonometrica tangente di x (x in radianti) %u e' pari a "
         "%.2f\n",
         numero, tan(numero));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xdfa(%rip),%rdi
lea    0xdf6(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdfd(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   10b0 <scanf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x8(%rbp),%edi
call   1100 <sqrt@plt>
mov    -0x3c(%rbp),%esi
lea    0xddf(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x8(%rbp),%edi
call   10a0 <cbrt@plt>
mov    -0x38(%rbp),%esi
lea    0xde9(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x8(%rbp),%edi
call   1080 <exp@plt>
mov    -0x34(%rbp),%esi
lea    0xdf1(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x8(%rbp),%edi
call   10d0 <log@plt>
mov    -0x30(%rbp),%esi
lea    0xdfe(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x8(%rbp),%edi
call   10f0 <log10@plt>
mov    -0x2c(%rbp),%esi
lea    0xe18(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x8(%rbp),%edi
call   1060 <fabs@plt>
mov    -0x28(%rbp),%esi
lea    0xe1d(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <ceil@plt>
mov    -0x24(%rbp),%esi
lea    0xe44(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%edi
call   1110 <floor@plt>
mov    -0x20(%rbp),%esi
lea    0xe6b(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%edi
mov    $0x5,%esi
call   10e0 <pow@plt>
mov    -0x1c(%rbp),%esi
lea    0xe8e(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%edi
mov    $0x3,%esi
call   1050 <fmod@plt>
mov    -0x18(%rbp),%esi
lea    0xe9c(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%edi
call   1070 <sin@plt>
mov    -0x14(%rbp),%esi
lea    0xeb8(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%edi
call   10c0 <cos@plt>
mov    -0x10(%rbp),%esi
lea    0xede(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%edi
call   1090 <tan@plt>
mov    -0xc(%rbp),%esi
lea    0xf06(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xe04(%rip),%rdi
lea    0xe00(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe07(%rip),%rdi
lea    0xc(%rsp),%rsi
call   10b0 <scanf@plt>
mov    0xc(%rsp),%ebx
mov    %ebx,%edi
call   1100 <sqrt@plt>
lea    0xdee(%rip),%rdi
mov    %ebx,%esi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0xc(%rsp),%ebx
mov    %ebx,%edi
call   10a0 <cbrt@plt>
lea    0xdfc(%rip),%rdi
mov    %ebx,%esi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0xc(%rsp),%ebx
mov    %ebx,%edi
call   1080 <exp@plt>
lea    0xe08(%rip),%rdi
mov    %ebx,%esi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0xc(%rsp),%ebx
mov    %ebx,%edi
call   10d0 <log@plt>
lea    0xe19(%rip),%rdi
mov    %ebx,%esi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0xc(%rsp),%ebx
mov    %ebx,%edi
call   10f0 <log10@plt>
lea    0xe37(%rip),%rdi
mov    %ebx,%esi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0xc(%rsp),%ebx
mov    %ebx,%edi
call   1060 <fabs@plt>
lea    0xe40(%rip),%rdi
mov    %ebx,%esi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0xc(%rsp),%ebx
mov    %ebx,%edi
call   1030 <ceil@plt>
lea    0xe6b(%rip),%rdi
mov    %ebx,%esi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0xc(%rsp),%ebx
mov    %ebx,%edi
call   1110 <floor@plt>
lea    0xe96(%rip),%rdi
mov    %ebx,%esi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0xc(%rsp),%ebx
mov    %ebx,%edi
mov    $0x5,%esi
call   10e0 <pow@plt>
lea    0xebd(%rip),%rdi
mov    %ebx,%esi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0xc(%rsp),%ebx
mov    %ebx,%edi
mov    $0x3,%esi
call   1050 <fmod@plt>
lea    0xecf(%rip),%rdi
mov    %ebx,%esi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0xc(%rsp),%ebx
mov    %ebx,%edi
call   1070 <sin@plt>
lea    0xeef(%rip),%rdi
mov    %ebx,%esi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0xc(%rsp),%ebx
mov    %ebx,%edi
call   10c0 <cos@plt>
lea    0xf19(%rip),%rdi
mov    %ebx,%esi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0xc(%rsp),%ebx
mov    %ebx,%edi
call   1090 <tan@plt>
lea    0xf45(%rip),%rdi
mov    %ebx,%esi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [21 x i8] c"Inserire il numero: \00"
@.str.2 = [3 x i8] c"%u\00"
@.str.3 = [41 x i8] c"La radice quadrata di %u e' pari a %.2f\0A\00"
@.str.4 = [39 x i8] c"La radice cubica di %u e' pari a %.2f\0A\00"
@.str.5 = [44 x i8] c"Funzione esponenziale di %u e' pari a %.2f\0A\00"
@.str.6 = [57 x i8] c"Logaritmo naturale di x(in base e) di %u e' pari a %.2f\0A\00"
@.str.7 = [36 x i8] c"Logaritmo di x x %u e' pari a %.2f\0A\00"
@.str.8 = [70 x i8] c"Valore assoluto di x come numero in virgola mobile %u e' pari a %.2f\0A\00"
@.str.9 = [70 x i8] c"Arrotonda x all'intero piu piccolo non minore di x %u e' pari a %.2f\0A\00"
@.str.10 = [71 x i8] c"Arrotonda x all'intero piu grande non maggiore di x %u e' pari a %.2f\0A\00"
@.str.11 = [50 x i8] c"x elevato alla potenza y (x^y) %u e' pari a %.2f\0A\00"
@.str.12 = [59 x i8] c"resto x/y come numero in virgola mobile %u e' pari a %.2f\0A\00"
@.str.13 = [69 x i8] c"funzione trigonometrica seno di x (x in radiandi) %u e' pari a %.2f\0A\00"
@.str.14 = [71 x i8] c"Funzione trigonometrica coseno di x (x in radianti) %u e' pari a %.2f\0A\00"
@.str.15 = [73 x i8] c"funzione trigonometrica tangente di x (x in radianti) %u e' pari a %.2f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%5 = load i32, i32* %2
%6 = load i32, i32* %2
%7 = call double @sqrt(i32 %6)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), i32 %5, double %7)
%9 = load i32, i32* %2
%10 = load i32, i32* %2
%11 = call double @cbrt(i32 %10)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0), i32 %9, double %11)
%13 = load i32, i32* %2
%14 = load i32, i32* %2
%15 = call double @exp(i32 %14)
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0), i32 %13, double %15)
%17 = load i32, i32* %2
%18 = load i32, i32* %2
%19 = call double @log(i32 %18)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.6, i64 0, i64 0), i32 %17, double %19)
%21 = load i32, i32* %2
%22 = load i32, i32* %2
%23 = call double @log10(i32 %22)
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0), i32 %21, double %23)
%25 = load i32, i32* %2
%26 = load i32, i32* %2
%27 = call double @fabs(i32 %26)
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.8, i64 0, i64 0), i32 %25, double %27)
%29 = load i32, i32* %2
%30 = load i32, i32* %2
%31 = call double @ceil(i32 %30)
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.9, i64 0, i64 0), i32 %29, double %31)
%33 = load i32, i32* %2
%34 = load i32, i32* %2
%35 = call double @floor(i32 %34)
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.10, i64 0, i64 0), i32 %33, double %35)
%37 = load i32, i32* %2
%38 = load i32, i32* %2
%39 = call double @pow(i32 %38, i32 5)
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.11, i64 0, i64 0), i32 %37, double %39)
%41 = load i32, i32* %2
%42 = load i32, i32* %2
%43 = call double @fmod(i32 %42, i32 3)
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.12, i64 0, i64 0), i32 %41, double %43)
%45 = load i32, i32* %2
%46 = load i32, i32* %2
%47 = call double @sin(i32 %46)
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.13, i64 0, i64 0), i32 %45, double %47)
%49 = load i32, i32* %2
%50 = load i32, i32* %2
%51 = call double @cos(i32 %50)
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.14, i64 0, i64 0), i32 %49, double %51)
%53 = load i32, i32* %2
%54 = load i32, i32* %2
%55 = call double @tan(i32 %54)
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.15, i64 0, i64 0), i32 %53, double %55)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@.str.1 = [21 x i8] c"Inserire il numero: \00"
@.str.2 = [3 x i8] c"%u\00"
@.str.3 = [41 x i8] c"La radice quadrata di %u e' pari a %.2f\0A\00"
@.str.4 = [39 x i8] c"La radice cubica di %u e' pari a %.2f\0A\00"
@.str.5 = [44 x i8] c"Funzione esponenziale di %u e' pari a %.2f\0A\00"
@.str.6 = [57 x i8] c"Logaritmo naturale di x(in base e) di %u e' pari a %.2f\0A\00"
@.str.7 = [36 x i8] c"Logaritmo di x x %u e' pari a %.2f\0A\00"
@.str.8 = [70 x i8] c"Valore assoluto di x come numero in virgola mobile %u e' pari a %.2f\0A\00"
@.str.9 = [70 x i8] c"Arrotonda x all'intero piu piccolo non minore di x %u e' pari a %.2f\0A\00"
@.str.10 = [71 x i8] c"Arrotonda x all'intero piu grande non maggiore di x %u e' pari a %.2f\0A\00"
@.str.11 = [50 x i8] c"x elevato alla potenza y (x^y) %u e' pari a %.2f\0A\00"
@.str.12 = [59 x i8] c"resto x/y come numero in virgola mobile %u e' pari a %.2f\0A\00"
@.str.13 = [69 x i8] c"funzione trigonometrica seno di x (x in radiandi) %u e' pari a %.2f\0A\00"
@.str.14 = [71 x i8] c"Funzione trigonometrica coseno di x (x in radianti) %u e' pari a %.2f\0A\00"
@.str.15 = [73 x i8] c"funzione trigonometrica tangente di x (x in radianti) %u e' pari a %.2f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %1)
%5 = load i32, i32* %1
%6 = call double @sqrt(i32 %5)
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), i32 %5, double %6)
%8 = load i32, i32* %1
%9 = call double @cbrt(i32 %8)
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0), i32 %8, double %9)
%11 = load i32, i32* %1
%12 = call double @exp(i32 %11)
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0), i32 %11, double %12)
%14 = load i32, i32* %1
%15 = call double @log(i32 %14)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.6, i64 0, i64 0), i32 %14, double %15)
%17 = load i32, i32* %1
%18 = call double @log10(i32 %17)
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0), i32 %17, double %18)
%20 = load i32, i32* %1
%21 = call double @fabs(i32 %20)
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @.str.8, i64 0, i64 0), i32 %20, double %21)
%23 = load i32, i32* %1
%24 = call double @ceil(i32 %23)
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @.str.9, i64 0, i64 0), i32 %23, double %24)
%26 = load i32, i32* %1
%27 = call double @floor(i32 %26)
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @.str.10, i64 0, i64 0), i32 %26, double %27)
%29 = load i32, i32* %1
%30 = call double @pow(i32 %29, i32 5)
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.11, i64 0, i64 0), i32 %29, double %30)
%32 = load i32, i32* %1
%33 = call double @fmod(i32 %32, i32 3)
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.12, i64 0, i64 0), i32 %32, double %33)
%35 = load i32, i32* %1
%36 = call double @sin(i32 %35)
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.13, i64 0, i64 0), i32 %35, double %36)
%38 = load i32, i32* %1
%39 = call double @cos(i32 %38)
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @.str.14, i64 0, i64 0), i32 %38, double %39)
%41 = load i32, i32* %1
%42 = call double @tan(i32 %41)
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @.str.15, i64 0, i64 0), i32 %41, double %42)
ret i32 0
}