#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 *, char, float, int, char *, double);
int main(int argc, char *argv[]) {
  struct s_type {
    char ch;
    float d;
    int i;
    char str[80];
    double balance;
  };
  struct s_type s_var = {'f', 0.314, 5, "Hello World!", 3140000000000};
  printf("%c, %f, %d, %s, %f\n", s_var.ch, s_var.d, s_var.i, s_var.str,
         s_var.balance);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x78(%rbp),%rdi
lea    0xec3(%rip),%rsi
mov    $0x68,%edx
call   1040 <memcpy@plt>
mov    -0x78(%rbp),%al
movss  -0x74(%rbp),%xmm0
mov    -0x70(%rbp),%edx
lea    -0x78(%rbp),%rcx
add    $0xc,%rcx
movsd  -0x18(%rbp),%xmm1
lea    0xf02(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x68,%rsp
mov    0xf55(%rip),%rax
mov    %rax,0x60(%rsp)
movups 0xf39(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movups 0xf1d(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movups 0xf01(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movups 0xee5(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movups 0xec9(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movups 0xead(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0xc(%rsp),%rcx
lea    0xf05(%rip),%rdi
movss  0xe85(%rip),%xmm0
movsd  0xe85(%rip),%xmm1
mov    $0x66,%esi
mov    $0x5,%edx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x68,%rsp
ret

LLVM IR (-O0):
%struct.s_type = type { i8, float, i32, [80 x i8], double }
@__const.main.s_var = %struct.s_type { i8 102, float 0x3FD4189380000000, i32 5, [80 x i8] c"Hello World!\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", double 3.140000e+12 }
@.str = [20 x i8] c"%c, %f, %d, %s, %f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca %struct.s_type
store i32 %0, i32* %3
store i8** %1, i8*** %4
%6 = bitcast %struct.s_type* %5 to i8*
%7 = getelementptr inbounds %struct.s_type, %struct.s_type* %5, i32 0, i32 0
%8 = load i8, i8* %7
%9 = getelementptr inbounds %struct.s_type, %struct.s_type* %5, i32 0, i32 1
%10 = load float, float* %9
%11 = getelementptr inbounds %struct.s_type, %struct.s_type* %5, i32 0, i32 2
%12 = load i32, i32* %11
%13 = getelementptr inbounds %struct.s_type, %struct.s_type* %5, i32 0, i32 3
%14 = getelementptr inbounds [80 x i8], [80 x i8]* %13, i64 0, i64 0
%15 = getelementptr inbounds %struct.s_type, %struct.s_type* %5, i32 0, i32 4
%16 = load double, double* %15
%17 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8 signext %8, float %10, i32 %12, i8* %14, double %16)
ret i32 0
}

LLVM IR (-O2):
%struct.s_type = type { i8, float, i32, [80 x i8], double }
@__const.main.s_var = %struct.s_type { i8 102, float 0x3FD4189380000000, i32 5, [80 x i8] c"Hello World!\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", double 3.140000e+12 }
@.str = [20 x i8] c"%c, %f, %d, %s, %f\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca %struct.s_type
%4 = getelementptr inbounds %struct.s_type, %struct.s_type* %3, i64 0, i32 0
%5 = getelementptr inbounds %struct.s_type, %struct.s_type* %3, i64 0, i32 3, i64 0
%6 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8 signext 102, float 0x3FD4189380000000, i32 5, i8* %5, double 3.140000e+12)
ret i32 0
}