int menu_add(void) {
  ;
  char *firstname;
  char *lastname;
  char *street;
  int *number;
  int *zipcode;
  char *city;
  printf("\tFirst name:\t");
  firstname = get_line();
  printf("\tLast Name:\t");
  lastname = get_line();
  printf("\tStreet:\t\t");
  street = get_line();
  printf("\tNumber:\t\t");
  number = malloc(sizeof(int));
  *number = atoi(get_line());
  printf("\tZipcode:\t");
  zipcode = malloc(sizeof(int));
  *zipcode = atoi(get_line());
  printf("\tCity:\t\t");
  city = get_line();
  add_address(firstname, lastname, street, number, zipcode, city);
  free(firstname);
  free(lastname);
  free(street);
  free(number);
  free(zipcode);
  free(city);
  ;
  return 0;
}


x86 assembly (clang, -O0):
<menu_add>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
lea    0xe91(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <get_line@plt>
cltq
mov    %rax,-0x8(%rbp)
lea    0xe84(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <get_line@plt>
cltq
mov    %rax,-0x10(%rbp)
lea    0xe76(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <get_line@plt>
cltq
mov    %rax,-0x18(%rbp)
lea    0xe66(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x4,%edi
call   1070 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    $0x0,%al
call   1040 <get_line@plt>
mov    %eax,%edi
mov    $0x0,%al
call   1080 <atoi@plt>
mov    %eax,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
lea    0xe3d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x4,%edi
call   1070 <malloc@plt>
mov    %rax,-0x28(%rbp)
mov    $0x0,%al
call   1040 <get_line@plt>
mov    %eax,%edi
mov    $0x0,%al
call   1080 <atoi@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
lea    0xe14(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <get_line@plt>
cltq
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%r9
mov    $0x0,%al
call   1060 <add_address@plt>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<menu_add>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xe8e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   1040 <get_line@plt>
movslq %eax,%r14
lea    0xe84(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   1040 <get_line@plt>
movslq %eax,%r15
lea    0xe79(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   1040 <get_line@plt>
movslq %eax,%r12
lea    0xe6c(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x4,%edi
call   1070 <malloc@plt>
mov    %rax,%r13
xor    %eax,%eax
call   1040 <get_line@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1080 <atoi@plt>
mov    %eax,0x0(%r13)
lea    0xe48(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x4,%edi
call   1070 <malloc@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   1040 <get_line@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1080 <atoi@plt>
mov    %eax,(%rbx)
lea    0xe26(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   1040 <get_line@plt>
movslq %eax,%rbp
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    %rbx,%r8
mov    %rbp,%r9
xor    %eax,%eax
call   1060 <add_address@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [14 x i8] c"\09First name:\09\00"
@.str.1 = [13 x i8] c"\09Last Name:\09\00"
@.str.2 = [11 x i8] c"\09Street:\09\09\00"
@.str.3 = [11 x i8] c"\09Number:\09\09\00"
@.str.4 = [11 x i8] c"\09Zipcode:\09\00"
@.str.5 = [9 x i8] c"\09City:\09\09\00"
define i32 @menu_add() {
%1 = alloca i8*
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca i8*
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (...) @get_line()
%9 = sext i32 %8 to i64
%10 = inttoptr i64 %9 to i8*
store i8* %10, i8** %1
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 (...) @get_line()
%13 = sext i32 %12 to i64
%14 = inttoptr i64 %13 to i8*
store i8* %14, i8** %2
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%16 = call i32 (...) @get_line()
%17 = sext i32 %16 to i64
%18 = inttoptr i64 %17 to i8*
store i8* %18, i8** %3
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%20 = call i8* @malloc(i64 4)
%21 = bitcast i8* %20 to i32*
store i32* %21, i32** %4
%22 = call i32 (...) @get_line()
%23 = call i32 (i32, ...) bitcast (i32 (...)* @atoi to i32 (i32, ...)*)(i32 %22)
%24 = load i32*, i32** %4
store i32 %23, i32* %24
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%26 = call i8* @malloc(i64 4)
%27 = bitcast i8* %26 to i32*
store i32* %27, i32** %5
%28 = call i32 (...) @get_line()
%29 = call i32 (i32, ...) bitcast (i32 (...)* @atoi to i32 (i32, ...)*)(i32 %28)
%30 = load i32*, i32** %5
store i32 %29, i32* %30
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%32 = call i32 (...) @get_line()
%33 = sext i32 %32 to i64
%34 = inttoptr i64 %33 to i8*
store i8* %34, i8** %6
%35 = load i8*, i8** %1
%36 = load i8*, i8** %2
%37 = load i8*, i8** %3
%38 = load i32*, i32** %4
%39 = load i32*, i32** %5
%40 = load i8*, i8** %6
%41 = call i32 (i8*, i8*, i8*, i32*, i32*, i8*, ...) bitcast (i32 (...)* @add_address to i32 (i8*, i8*, i8*, i32*, i32*, i8*, ...)*)(i8* %35, i8* %36, i8* %37, i32* %38, i32* %39, i8* %40)
%42 = load i8*, i8** %1
%43 = load i8*, i8** %2
%44 = load i8*, i8** %3
%45 = load i32*, i32** %4
%46 = bitcast i32* %45 to i8*
%47 = load i32*, i32** %5
%48 = bitcast i32* %47 to i8*
%49 = load i8*, i8** %6
ret i32 0
}

LLVM IR (-O2):
@.str = [14 x i8] c"\09First name:\09\00"
@.str.1 = [13 x i8] c"\09Last Name:\09\00"
@.str.2 = [11 x i8] c"\09Street:\09\09\00"
@.str.3 = [11 x i8] c"\09Number:\09\09\00"
@.str.4 = [11 x i8] c"\09Zipcode:\09\00"
@.str.5 = [9 x i8] c"\09City:\09\09\00"
define i32 @menu_add() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @get_line()
%3 = sext i32 %2 to i64
%4 = inttoptr i64 %3 to i8*
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 (...) @get_line()
%7 = sext i32 %6 to i64
%8 = inttoptr i64 %7 to i8*
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%10 = tail call i32 (...) @get_line()
%11 = sext i32 %10 to i64
%12 = inttoptr i64 %11 to i8*
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%14 = tail call dereferenceable_or_null(4) i8* @malloc(i64 4)
%15 = bitcast i8* %14 to i32*
%16 = tail call i32 (...) @get_line()
%17 = tail call i32 (i32, ...) bitcast (i32 (...)* @atoi to i32 (i32, ...)*)(i32 %16)
store i32 %17, i32* %15
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%19 = tail call dereferenceable_or_null(4) i8* @malloc(i64 4)
%20 = bitcast i8* %19 to i32*
%21 = tail call i32 (...) @get_line()
%22 = tail call i32 (i32, ...) bitcast (i32 (...)* @atoi to i32 (i32, ...)*)(i32 %21)
store i32 %22, i32* %20
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%24 = tail call i32 (...) @get_line()
%25 = sext i32 %24 to i64
%26 = inttoptr i64 %25 to i8*
%27 = tail call i32 (i8*, i8*, i8*, i32*, i32*, i8*, ...) bitcast (i32 (...)* @add_address to i32 (i8*, i8*, i8*, i32*, i32*, i8*, ...)*)(i8* %4, i8* %8, i8* %12, i32* %15, i32* %20, i8* %26)
tail call void @free(i8* %4)
tail call void @free(i8* %8)
tail call void @free(i8* %12)
tail call void @free(i8* %14)
tail call void @free(i8* %19)
tail call void @free(i8* %26)
ret i32 0
}