int main(int argc, const char *argv[]) {
  enum Color { RED = 0, GREEN, BLUE, YELLOW };
  struct PersonalInfo {
    int id;
    double weight;
    double height;
    int age;
    enum Color favouriteColor;
    int iq;
    int salary;
  };
  struct PersonalInfo Pat = {1234, 80, 175, 35, YELLOW, 100, 0};
  struct PersonalInfo Mat = {1235, 82, 174, 34, RED, 99, 0};
  struct PersonalInfo employees[2] = {Pat, Mat};
  int i;
  for (i = 0; i < 2; ++i) {
    if (employees[i].iq > 130) {
      employees[i].salary = 30000;
    } else {
      employees[i].salary = 5000;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x38(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1030 <memset@plt>
movl   $0x4d2,-0x38(%rbp)
movsd  0xec0(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xeab(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movl   $0x23,-0x20(%rbp)
movl   $0x3,-0x1c(%rbp)
movl   $0x64,-0x18(%rbp)
lea    -0x60(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1030 <memset@plt>
movl   $0x4d3,-0x60(%rbp)
movsd  0xe6a(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xe55(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movl   $0x22,-0x48(%rbp)
movl   $0x63,-0x40(%rbp)
lea    -0xb0(%rbp),%rdi
mov    %rdi,-0xc0(%rbp)
lea    -0x38(%rbp),%rsi
mov    $0x28,%edx
call   1040 <memcpy@plt>
mov    -0xc0(%rbp),%rdi
add    $0x28,%rdi
lea    -0x60(%rbp),%rsi
mov    $0x28,%edx
call   1040 <memcpy@plt>
movl   $0x0,-0xb4(%rbp)
cmpl   $0x2,-0xb4(%rbp)
jge    1282 <main+0x162>
movslq -0xb4(%rbp),%rcx
lea    -0xb0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
cmpl   $0x82,0x20(%rax)
jle    124d <main+0x12d>
movslq -0xb4(%rbp),%rcx
lea    -0xb0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movl   $0x7530,0x24(%rax)
jmp    1269 <main+0x149>
movslq -0xb4(%rbp),%rcx
lea    -0xb0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movl   $0x1388,0x24(%rax)
jmp    126e <main+0x14e>
mov    -0xb4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb4(%rbp)
jmp    11fd <main+0xdd>
xor    %eax,%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
xor    %eax,%eax
ret

LLVM IR (-O0):
%struct.PersonalInfo = type { i32, double, double, i32, i32, i32, i32 }
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.PersonalInfo
%7 = alloca %struct.PersonalInfo
%8 = alloca [2 x %struct.PersonalInfo]
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = bitcast %struct.PersonalInfo* %6 to i8*
%11 = bitcast i8* %10 to %struct.PersonalInfo*
%12 = getelementptr inbounds %struct.PersonalInfo, %struct.PersonalInfo* %11, i32 0, i32 0
store i32 1234, i32* %12
%13 = getelementptr inbounds %struct.PersonalInfo, %struct.PersonalInfo* %11, i32 0, i32 1
store double 8.000000e+01, double* %13
%14 = getelementptr inbounds %struct.PersonalInfo, %struct.PersonalInfo* %11, i32 0, i32 2
store double 1.750000e+02, double* %14
%15 = getelementptr inbounds %struct.PersonalInfo, %struct.PersonalInfo* %11, i32 0, i32 3
store i32 35, i32* %15
%16 = getelementptr inbounds %struct.PersonalInfo, %struct.PersonalInfo* %11, i32 0, i32 4
store i32 3, i32* %16
%17 = getelementptr inbounds %struct.PersonalInfo, %struct.PersonalInfo* %11, i32 0, i32 5
store i32 100, i32* %17
%18 = bitcast %struct.PersonalInfo* %7 to i8*
%19 = bitcast i8* %18 to %struct.PersonalInfo*
%20 = getelementptr inbounds %struct.PersonalInfo, %struct.PersonalInfo* %19, i32 0, i32 0
store i32 1235, i32* %20
%21 = getelementptr inbounds %struct.PersonalInfo, %struct.PersonalInfo* %19, i32 0, i32 1
store double 8.200000e+01, double* %21
%22 = getelementptr inbounds %struct.PersonalInfo, %struct.PersonalInfo* %19, i32 0, i32 2
store double 1.740000e+02, double* %22
%23 = getelementptr inbounds %struct.PersonalInfo, %struct.PersonalInfo* %19, i32 0, i32 3
store i32 34, i32* %23
%24 = getelementptr inbounds %struct.PersonalInfo, %struct.PersonalInfo* %19, i32 0, i32 5
store i32 99, i32* %24
%25 = getelementptr inbounds [2 x %struct.PersonalInfo], [2 x %struct.PersonalInfo]* %8, i64 0, i64 0
%26 = bitcast %struct.PersonalInfo* %25 to i8*
%27 = bitcast %struct.PersonalInfo* %6 to i8*
%28 = getelementptr inbounds %struct.PersonalInfo, %struct.PersonalInfo* %25, i64 1
%29 = bitcast %struct.PersonalInfo* %28 to i8*
%30 = bitcast %struct.PersonalInfo* %7 to i8*
store i32 0, i32* %9
br label %31
31: ; preds = %52, %2
%32 = load i32, i32* %9
%33 = icmp slt i32 %32, 2
br i1 %33, label %34, label %55
34: ; preds = %31
%35 = load i32, i32* %9
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [2 x %struct.PersonalInfo], [2 x %struct.PersonalInfo]* %8, i64 0, i64 %36
%38 = getelementptr inbounds %struct.PersonalInfo, %struct.PersonalInfo* %37, i32 0, i32 5
%39 = load i32, i32* %38
%40 = icmp sgt i32 %39, 130
br i1 %40, label %41, label %46
41: ; preds = %34
%42 = load i32, i32* %9
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [2 x %struct.PersonalInfo], [2 x %struct.PersonalInfo]* %8, i64 0, i64 %43
%45 = getelementptr inbounds %struct.PersonalInfo, %struct.PersonalInfo* %44, i32 0, i32 6
store i32 30000, i32* %45
br label %51
46: ; preds = %34
%47 = load i32, i32* %9
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [2 x %struct.PersonalInfo], [2 x %struct.PersonalInfo]* %8, i64 0, i64 %48
%50 = getelementptr inbounds %struct.PersonalInfo, %struct.PersonalInfo* %49, i32 0, i32 6
store i32 5000, i32* %50
br label %51
51: ; preds = %46, %41
br label %52
52: ; preds = %51
%53 = load i32, i32* %9
%54 = add nsw i32 %53, 1
store i32 %54, i32* %9
br label %31
55: ; preds = %31
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
ret i32 0
}