#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*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/, char *, char *, int *);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ stdout;
int main() {
  char nombre1[80], nombre2[80];
  int edad1, edad2;
  fprintf(stdout, "Nombre y edad: ");
  fscanf(stdin, "%s%d", nombre1, &edad1);
  fprintf(stdout, "Nombre y edad: ");
  fscanf(stdin, "%s%d", nombre2, &edad2);
  fprintf(stdout, "- %8s tiene %2d años\n", nombre1, edad1);
  fprintf(stdout, "- %8s tiene %2d años\n", nombre2, edad2);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e9f(%rip),%rax
mov    (%rax),%edi
lea    0xebe(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e98(%rip),%rax
mov    (%rax),%edi
lea    -0x60(%rbp),%rdx
lea    0xeb3(%rip),%rsi
lea    -0xb4(%rbp),%rcx
call   1030 <fscanf@plt>
mov    0x2e68(%rip),%rax
mov    (%rax),%edi
lea    0xe87(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e61(%rip),%rax
mov    (%rax),%edi
lea    -0xb0(%rbp),%rdx
lea    0xe79(%rip),%rsi
lea    -0xb8(%rbp),%rcx
call   1030 <fscanf@plt>
mov    0x2e2e(%rip),%rax
mov    (%rax),%edi
lea    -0x60(%rbp),%rdx
mov    -0xb4(%rbp),%ecx
lea    0xe58(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e0d(%rip),%rax
mov    (%rax),%edi
lea    -0xb0(%rbp),%rdx
mov    -0xb8(%rbp),%ecx
lea    0xe34(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
xor    %eax,%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb0,%rsp
mov    0x2ea1(%rip),%r12
mov    (%r12),%edi
lea    0xebe(%rip),%r15
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    0x2e95(%rip),%rbx
mov    (%rbx),%edi
lea    0xeb4(%rip),%r13
lea    0x60(%rsp),%r14
lea    0xc(%rsp),%rcx
mov    %r13,%rsi
mov    %r14,%rdx
call   1030 <fscanf@plt>
mov    (%r12),%edi
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10(%rsp),%r15
lea    0x8(%rsp),%rcx
mov    %r13,%rsi
mov    %r15,%rdx
call   1030 <fscanf@plt>
mov    (%r12),%edi
mov    0xc(%rsp),%ecx
lea    0xe70(%rip),%rbx
mov    %rbx,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r12),%edi
mov    0x8(%rsp),%ecx
mov    %rbx,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@stdout = global i32 0
@.str = [16 x i8] c"Nombre y edad: \00"
@stdin = global i32 0
@.str.1 = [5 x i8] c"%s%d\00"
@.str.2 = [23 x i8] c"- %8s tiene %2d a\C3\B1os\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [80 x i8]
%3 = alloca [80 x i8]
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
%6 = load i32, i32* @stdout
%7 = call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%8 = load i32, i32* @stdin
%9 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%10 = call i32 @fscanf(i32 %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %9, i32* %4)
%11 = load i32, i32* @stdout
%12 = call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%13 = load i32, i32* @stdin
%14 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%15 = call i32 @fscanf(i32 %13, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %14, i32* %5)
%16 = load i32, i32* @stdout
%17 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%18 = load i32, i32* %4
%19 = call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i8* %17, i32 %18)
%20 = load i32, i32* @stdout
%21 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%22 = load i32, i32* %5
%23 = call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i8* %21, i32 %22)
ret i32 0
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [16 x i8] c"Nombre y edad: \00"
@stdin = global i32 0
@.str.1 = [5 x i8] c"%s%d\00"
@.str.2 = [23 x i8] c"- %8s tiene %2d a\C3\B1os\0A\00"
define i32 @main() {
%1 = alloca [80 x i8]
%2 = alloca [80 x i8]
%3 = alloca i32
%4 = alloca i32
%5 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%6 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%7 = bitcast i32* %3 to i8*
%8 = bitcast i32* %4 to i8*
%9 = load i32, i32* @stdout
%10 = tail call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%11 = load i32, i32* @stdin
%12 = call i32 @fscanf(i32 %11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %5, i32* %3)
%13 = load i32, i32* @stdout
%14 = call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%15 = load i32, i32* @stdin
%16 = call i32 @fscanf(i32 %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %6, i32* %4)
%17 = load i32, i32* @stdout
%18 = load i32, i32* %3
%19 = call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i8* %5, i32 %18)
%20 = load i32, i32* @stdout
%21 = load i32, i32* %4
%22 = call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i8* %6, i32 %21)
ret i32 0
}