#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 lettura_intero();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ puts(char *);
void inserimento_data(int *giorno, int *mese, int *anno) {
  puts("Prego inserire la data");
  puts("Inserire il giorno");
  printf("->: ");
  *giorno = lettura_intero();
  puts("Inserire il mese");
  printf("->: ");
  *mese = lettura_intero();
  puts("Inserire l'anno");
  printf("->: ");
  *anno = lettura_intero();
  return;
}


x86 assembly (clang, -O0):
<inserimento_data>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
lea    0xeb5(%rip),%rdi
call   1030 <puts@plt>
lea    0xec0(%rip),%rdi
call   1030 <puts@plt>
lea    0xec7(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <lettura_intero@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
lea    0xeb1(%rip),%rdi
call   1030 <puts@plt>
lea    0xea0(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <lettura_intero@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
lea    0xe9b(%rip),%rdi
call   1030 <puts@plt>
lea    0xe79(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <lettura_intero@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<inserimento_data>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
lea    0xeb8(%rip),%rdi
call   1030 <puts@plt>
lea    0xec3(%rip),%rdi
call   1030 <puts@plt>
lea    0xeca(%rip),%r12
mov    %r12,%rdi
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <lettura_intero@plt>
mov    %eax,(%rbx)
lea    0xeb7(%rip),%rdi
call   1030 <puts@plt>
mov    %r12,%rdi
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <lettura_intero@plt>
mov    %eax,(%r15)
lea    0xeaa(%rip),%rdi
call   1030 <puts@plt>
mov    %r12,%rdi
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <lettura_intero@plt>
mov    %eax,(%r14)
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [23 x i8] c"Prego inserire la data\00"
@.str.1 = [19 x i8] c"Inserire il giorno\00"
@.str.2 = [5 x i8] c"->: \00"
@.str.3 = [17 x i8] c"Inserire il mese\00"
@.str.4 = [16 x i8] c"Inserire l'anno\00"
define void @inserimento_data(i32* %0, i32* %1, i32* %2) {
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca i32*
store i32* %0, i32** %4
store i32* %1, i32** %5
store i32* %2, i32** %6
%7 = call i32 @puts(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @puts(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 (...) @lettura_intero()
%11 = load i32*, i32** %4
store i32 %10, i32* %11
%12 = call i32 @puts(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%14 = call i32 (...) @lettura_intero()
%15 = load i32*, i32** %5
store i32 %14, i32* %15
%16 = call i32 @puts(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%18 = call i32 (...) @lettura_intero()
%19 = load i32*, i32** %6
store i32 %18, i32* %19
ret void
}

LLVM IR (-O2):
@.str = [23 x i8] c"Prego inserire la data\00"
@.str.1 = [19 x i8] c"Inserire il giorno\00"
@.str.2 = [5 x i8] c"->: \00"
@.str.3 = [17 x i8] c"Inserire il mese\00"
@.str.4 = [16 x i8] c"Inserire l'anno\00"
define void @inserimento_data(i32* nocapture writeonly %0, i32* nocapture writeonly %1, i32* nocapture writeonly %2) {
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 (...) @lettura_intero()
store i32 %7, i32* %0
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%10 = tail call i32 (...) @lettura_intero()
store i32 %10, i32* %1
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%12 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%13 = tail call i32 (...) @lettura_intero()
store i32 %13, i32* %2
ret void
}