#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 main() {
  char firstName[] = "Iordan";
  char middleName[] = "Iordanov";
  char lastName[] = "Iordanov";
  long double balance = 123.8965;
  char bankName[] = "DSK Bank";
  char IBAN[] = "BG80 BNBG 9888 7420 3456 78 ";
  unsigned long firstCardNum = 12325455234;
  unsigned long secondCardNum = 89516648536;
  unsigned long thirdCardNum = 56987456215;
  printf("Bank: %s\n", bankName);
  printf("Account holder name: %s %s %s\nIBAN: %s\n", firstName, middleName,
         lastName, IBAN);
  printf("Balance: %.5Lf\n", balance);
  printf("Credit card numbers: %Ld, %Ld, %ld\n", firstCardNum, secondCardNum,
         thirdCardNum);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x6e6164,-0x9(%rbp)
movl   $0x64726f49,-0xc(%rbp)
movabs $0x766f6e6164726f49,%rax
6e 6f 76
mov    %rax,-0x18(%rbp)
movb   $0x0,-0x10(%rbp)
mov    %rax,-0x28(%rbp)
movb   $0x0,-0x20(%rbp)
fldl   0xeb0(%rip)
fstpt  -0x40(%rbp)
movabs $0x6b6e6142204b5344,%rax
61 6e 6b
mov    %rax,-0x50(%rbp)
movb   $0x0,-0x48(%rbp)
movups 0xf31(%rip),%xmm0
movups %xmm0,-0x63(%rbp)
movaps 0xf19(%rip),%xmm0
movaps %xmm0,-0x70(%rbp)
movabs $0x2dea78582,%rax
mov    %rax,-0x78(%rbp)
movabs $0x14d79ba858,%rax
mov    %rax,-0x80(%rbp)
movabs $0xd44b792d7,%rax
mov    %rax,-0x88(%rbp)
lea    0xe72(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x89(%rbp)
lea    -0x50(%rbp),%rsi
call   1030 <printf@plt>
mov    -0x89(%rbp),%al
lea    0xe5e(%rip),%rdi
lea    -0xc(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x28(%rbp),%rcx
lea    -0x70(%rbp),%r8
call   1030 <printf@plt>
fldt   -0x40(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
lea    0xe62(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    -0x78(%rbp),%rsi
mov    -0x80(%rbp),%rdx
mov    -0x88(%rbp),%rcx
lea    0xe55(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x78,%rsp
movl   $0x6e6164,0x1b(%rsp)
movl   $0x64726f49,0x18(%rsp)
64
movabs $0x766f6e6164726f49,%rax
6e 6f 76
mov    %rax,0x40(%rsp)
movb   $0x0,0x48(%rsp)
mov    %rax,0x30(%rsp)
movb   $0x0,0x38(%rsp)
movabs $0x6b6e6142204b5344,%rax
61 6e 6b
mov    %rax,0x20(%rsp)
movb   $0x0,0x28(%rsp)
movups 0xf40(%rip),%xmm0
movups %xmm0,0x5d(%rsp)
movaps 0xf27(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
lea    0xeac(%rip),%rdi
lea    0x20(%rsp),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xea3(%rip),%rdi
lea    0x18(%rsp),%rsi
lea    0x40(%rsp),%rdx
lea    0x30(%rsp),%rcx
lea    0x50(%rsp),%r8
xor    %eax,%eax
call   1030 <printf@plt>
fldl   0xe57(%rip)
fstpt  (%rsp)
lea    0xea0(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xea2(%rip),%rdi
movabs $0x2dea78582,%rsi
movabs $0x14d79ba858,%rdx
movabs $0xd44b792d7,%rcx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x78,%rsp
ret

LLVM IR (-O0):
@__const.main.firstName = [7 x i8] c"Iordan\00"
@__const.main.middleName = [9 x i8] c"Iordanov\00"
@__const.main.lastName = [9 x i8] c"Iordanov\00"
@__const.main.bankName = [9 x i8] c"DSK Bank\00"
@__const.main.IBAN = [29 x i8] c"BG80 BNBG 9888 7420 3456 78 \00"
@.str = [10 x i8] c"Bank: %s\0A\00"
@.str.1 = [40 x i8] c"Account holder name: %s %s %s\0AIBAN: %s\0A\00"
@.str.2 = [16 x i8] c"Balance: %.5Lf\0A\00"
@.str.3 = [36 x i8] c"Credit card numbers: %Ld, %Ld, %ld\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [7 x i8]
%3 = alloca [9 x i8]
%4 = alloca [9 x i8]
%5 = alloca x86_fp80
%6 = alloca [9 x i8]
%7 = alloca [29 x i8]
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
store i32 0, i32* %1
%11 = bitcast [7 x i8]* %2 to i8*
%12 = bitcast [9 x i8]* %3 to i8*
%13 = bitcast [9 x i8]* %4 to i8*
store x86_fp80 0xK4005F7CB020C49BA6000, x86_fp80* %5
%14 = bitcast [9 x i8]* %6 to i8*
%15 = bitcast [29 x i8]* %7 to i8*
store i64 12325455234, i64* %8
store i64 89516648536, i64* %9
store i64 56987456215, i64* %10
%16 = getelementptr inbounds [9 x i8], [9 x i8]* %6, i64 0, i64 0
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %16)
%18 = getelementptr inbounds [7 x i8], [7 x i8]* %2, i64 0, i64 0
%19 = getelementptr inbounds [9 x i8], [9 x i8]* %3, i64 0, i64 0
%20 = getelementptr inbounds [9 x i8], [9 x i8]* %4, i64 0, i64 0
%21 = getelementptr inbounds [29 x i8], [29 x i8]* %7, i64 0, i64 0
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i8* %18, i8* %19, i8* %20, i8* %21)
%23 = load x86_fp80, x86_fp80* %5
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), x86_fp80 %23)
%25 = load i64, i64* %8
%26 = load i64, i64* %9
%27 = load i64, i64* %10
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), i64 %25, i64 %26, i64 %27)
ret i32 0
}

LLVM IR (-O2):
@__const.main.firstName = [7 x i8] c"Iordan\00"
@__const.main.lastName = [9 x i8] c"Iordanov\00"
@__const.main.bankName = [9 x i8] c"DSK Bank\00"
@__const.main.IBAN = [29 x i8] c"BG80 BNBG 9888 7420 3456 78 \00"
@.str = [10 x i8] c"Bank: %s\0A\00"
@.str.1 = [40 x i8] c"Account holder name: %s %s %s\0AIBAN: %s\0A\00"
@.str.2 = [16 x i8] c"Balance: %.5Lf\0A\00"
@.str.3 = [36 x i8] c"Credit card numbers: %Ld, %Ld, %ld\0A\00"
define i32 @main() {
%1 = alloca [7 x i8]
%2 = alloca [9 x i8]
%3 = alloca [9 x i8]
%4 = alloca [9 x i8]
%5 = alloca [29 x i8]
%6 = getelementptr inbounds [7 x i8], [7 x i8]* %1, i64 0, i64 0
%7 = getelementptr inbounds [9 x i8], [9 x i8]* %2, i64 0, i64 0
%8 = getelementptr inbounds [9 x i8], [9 x i8]* %3, i64 0, i64 0
%9 = getelementptr inbounds [9 x i8], [9 x i8]* %4, i64 0, i64 0
%10 = getelementptr inbounds [29 x i8], [29 x i8]* %5, i64 0, i64 0
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %9)
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i8* %6, i8* %7, i8* %8, i8* %10)
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), x86_fp80 0xK4005F7CB020C49BA6000)
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), i64 12325455234, i64 89516648536, i64 56987456215)
ret i32 0
}