#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*/ putchar(char);
void f14(void) {
  struct boo {
    int a;
    int b;
  };
  typedef struct boo named[3];
  named i;
  i[0].a = 'a';
  i[0].b = 'b';
  i[1].a = 'a';
  i[1].b = 'b';
  i[2].a = 'a';
  i[2].b = 'b';
  putchar(i[0].a);
  putchar(i[0].b);
  putchar(i[1].a);
  putchar(i[1].b);
  putchar(i[2].a);
  putchar(i[2].b);
}


x86 assembly (clang, -O0):
<f14>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x61,-0x20(%rbp)
movl   $0x62,-0x1c(%rbp)
movl   $0x61,-0x18(%rbp)
movl   $0x62,-0x14(%rbp)
movl   $0x61,-0x10(%rbp)
movl   $0x62,-0xc(%rbp)
mov    -0x20(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
mov    -0x1c(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
mov    -0x18(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
mov    -0x14(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
mov    -0x10(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
mov    -0xc(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f14>:
push   %rax
mov    $0x61,%edi
call   1030 <putchar@plt>
mov    $0x62,%edi
call   1030 <putchar@plt>
mov    $0x61,%edi
call   1030 <putchar@plt>
mov    $0x62,%edi
call   1030 <putchar@plt>
mov    $0x61,%edi
call   1030 <putchar@plt>
mov    $0x62,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
%struct.boo = type { i32, i32 }
define void @f14() {
%1 = alloca [3 x %struct.boo]
%2 = getelementptr inbounds [3 x %struct.boo], [3 x %struct.boo]* %1, i64 0, i64 0
%3 = getelementptr inbounds %struct.boo, %struct.boo* %2, i32 0, i32 0
store i32 97, i32* %3
%4 = getelementptr inbounds [3 x %struct.boo], [3 x %struct.boo]* %1, i64 0, i64 0
%5 = getelementptr inbounds %struct.boo, %struct.boo* %4, i32 0, i32 1
store i32 98, i32* %5
%6 = getelementptr inbounds [3 x %struct.boo], [3 x %struct.boo]* %1, i64 0, i64 1
%7 = getelementptr inbounds %struct.boo, %struct.boo* %6, i32 0, i32 0
store i32 97, i32* %7
%8 = getelementptr inbounds [3 x %struct.boo], [3 x %struct.boo]* %1, i64 0, i64 1
%9 = getelementptr inbounds %struct.boo, %struct.boo* %8, i32 0, i32 1
store i32 98, i32* %9
%10 = getelementptr inbounds [3 x %struct.boo], [3 x %struct.boo]* %1, i64 0, i64 2
%11 = getelementptr inbounds %struct.boo, %struct.boo* %10, i32 0, i32 0
store i32 97, i32* %11
%12 = getelementptr inbounds [3 x %struct.boo], [3 x %struct.boo]* %1, i64 0, i64 2
%13 = getelementptr inbounds %struct.boo, %struct.boo* %12, i32 0, i32 1
store i32 98, i32* %13
%14 = getelementptr inbounds [3 x %struct.boo], [3 x %struct.boo]* %1, i64 0, i64 0
%15 = getelementptr inbounds %struct.boo, %struct.boo* %14, i32 0, i32 0
%16 = load i32, i32* %15
%17 = trunc i32 %16 to i8
%18 = call i32 @putchar(i8 signext %17)
%19 = getelementptr inbounds [3 x %struct.boo], [3 x %struct.boo]* %1, i64 0, i64 0
%20 = getelementptr inbounds %struct.boo, %struct.boo* %19, i32 0, i32 1
%21 = load i32, i32* %20
%22 = trunc i32 %21 to i8
%23 = call i32 @putchar(i8 signext %22)
%24 = getelementptr inbounds [3 x %struct.boo], [3 x %struct.boo]* %1, i64 0, i64 1
%25 = getelementptr inbounds %struct.boo, %struct.boo* %24, i32 0, i32 0
%26 = load i32, i32* %25
%27 = trunc i32 %26 to i8
%28 = call i32 @putchar(i8 signext %27)
%29 = getelementptr inbounds [3 x %struct.boo], [3 x %struct.boo]* %1, i64 0, i64 1
%30 = getelementptr inbounds %struct.boo, %struct.boo* %29, i32 0, i32 1
%31 = load i32, i32* %30
%32 = trunc i32 %31 to i8
%33 = call i32 @putchar(i8 signext %32)
%34 = getelementptr inbounds [3 x %struct.boo], [3 x %struct.boo]* %1, i64 0, i64 2
%35 = getelementptr inbounds %struct.boo, %struct.boo* %34, i32 0, i32 0
%36 = load i32, i32* %35
%37 = trunc i32 %36 to i8
%38 = call i32 @putchar(i8 signext %37)
%39 = getelementptr inbounds [3 x %struct.boo], [3 x %struct.boo]* %1, i64 0, i64 2
%40 = getelementptr inbounds %struct.boo, %struct.boo* %39, i32 0, i32 1
%41 = load i32, i32* %40
%42 = trunc i32 %41 to i8
%43 = call i32 @putchar(i8 signext %42)
ret void
}

LLVM IR (-O2):
define void @f14() {
%1 = tail call i32 @putchar(i8 signext 97)
%2 = tail call i32 @putchar(i8 signext 98)
%3 = tail call i32 @putchar(i8 signext 97)
%4 = tail call i32 @putchar(i8 signext 98)
%5 = tail call i32 @putchar(i8 signext 97)
%6 = tail call i32 @putchar(i8 signext 98)
ret void
}