#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*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ scanf(char *, char *);
int main() {
  char name[20];
  puts("Введите имя Вашей девушки: ");
  scanf("%19s", name);
  printf("Дорогая %s. \n\n\tС тобой покончено!\n", name);
  printf("Адрес в памяти: %p\n", &name);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
call   1030 <puts@plt>
lea    -0x20(%rbp),%rsi
lea    0xedc(%rip),%rdi
call   1050 <scanf@plt>
lea    -0x20(%rbp),%rsi
lea    0xed1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xefc(%rip),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
lea    0xec4(%rip),%rdi
call   1030 <puts@plt>
lea    0xeea(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
call   1050 <scanf@plt>
lea    0xedd(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf05(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [50 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\B8\D0\BC\D1\8F \D0\92\D0\B0\D1\88\D0\B5\D0\B9 \D0\B4\D0\B5\D0\B2\D1\83\D1\88\D0\BA\D0\B8: \00"
@.str.1 = [5 x i8] c"%19s\00"
@.str.2 = [57 x i8] c"\D0\94\D0\BE\D1\80\D0\BE\D0\B3\D0\B0\D1\8F %s. \0A\0A\09\D0\A1 \D1\82\D0\BE\D0\B1\D0\BE\D0\B9 \D0\BF\D0\BE\D0\BA\D0\BE\D0\BD\D1\87\D0\B5\D0\BD\D0\BE!\0A\00"
@.str.3 = [32 x i8] c"\D0\90\D0\B4\D1\80\D0\B5\D1\81 \D0\B2 \D0\BF\D0\B0\D0\BC\D1\8F\D1\82\D0\B8: %p\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [20 x i8]
store i32 0, i32* %1
%3 = call i32 @puts(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
%4 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%5 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%6 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.2, i64 0, i64 0), i8* %6)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0), [20 x i8]* %2)
ret i32 0
}

LLVM IR (-O2):
@.str = [50 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\B8\D0\BC\D1\8F \D0\92\D0\B0\D1\88\D0\B5\D0\B9 \D0\B4\D0\B5\D0\B2\D1\83\D1\88\D0\BA\D0\B8: \00"
@.str.1 = [5 x i8] c"%19s\00"
@.str.2 = [57 x i8] c"\D0\94\D0\BE\D1\80\D0\BE\D0\B3\D0\B0\D1\8F %s. \0A\0A\09\D0\A1 \D1\82\D0\BE\D0\B1\D0\BE\D0\B9 \D0\BF\D0\BE\D0\BA\D0\BE\D0\BD\D1\87\D0\B5\D0\BD\D0\BE!\0A\00"
@.str.3 = [32 x i8] c"\D0\90\D0\B4\D1\80\D0\B5\D1\81 \D0\B2 \D0\BF\D0\B0\D0\BC\D1\8F\D1\82\D0\B8: %p\0A\00"
define i32 @main() {
%1 = alloca [20 x i8]
%2 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%5 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.2, i64 0, i64 0), i8* %2)
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0), [20 x i8]* %1)
ret i32 0
}