#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 f15(void) {
  typedef struct {
    int a;
    int b;
  } abc;
  abc i;
  i.a = 'a';
  i.b = 'b';
  i.a = 'a';
  i.b = 'b';
  i.a = 'a';
  i.b = 'b';
  putchar(i.a);
  putchar(i.b);
  putchar(i.a);
  putchar(i.b);
  putchar(i.a);
  putchar(i.b);
}


x86 assembly (clang, -O0):
<f15>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x61,-0x8(%rbp)
movl   $0x62,-0x4(%rbp)
movl   $0x61,-0x8(%rbp)
movl   $0x62,-0x4(%rbp)
movl   $0x61,-0x8(%rbp)
movl   $0x62,-0x4(%rbp)
mov    -0x8(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
mov    -0x4(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
mov    -0x8(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
mov    -0x4(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
mov    -0x8(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
mov    -0x4(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f15>:
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.abc = type { i32, i32 }
define void @f15() {
%1 = alloca %struct.abc
%2 = getelementptr inbounds %struct.abc, %struct.abc* %1, i32 0, i32 0
store i32 97, i32* %2
%3 = getelementptr inbounds %struct.abc, %struct.abc* %1, i32 0, i32 1
store i32 98, i32* %3
%4 = getelementptr inbounds %struct.abc, %struct.abc* %1, i32 0, i32 0
store i32 97, i32* %4
%5 = getelementptr inbounds %struct.abc, %struct.abc* %1, i32 0, i32 1
store i32 98, i32* %5
%6 = getelementptr inbounds %struct.abc, %struct.abc* %1, i32 0, i32 0
store i32 97, i32* %6
%7 = getelementptr inbounds %struct.abc, %struct.abc* %1, i32 0, i32 1
store i32 98, i32* %7
%8 = getelementptr inbounds %struct.abc, %struct.abc* %1, i32 0, i32 0
%9 = load i32, i32* %8
%10 = trunc i32 %9 to i8
%11 = call i32 @putchar(i8 signext %10)
%12 = getelementptr inbounds %struct.abc, %struct.abc* %1, i32 0, i32 1
%13 = load i32, i32* %12
%14 = trunc i32 %13 to i8
%15 = call i32 @putchar(i8 signext %14)
%16 = getelementptr inbounds %struct.abc, %struct.abc* %1, i32 0, i32 0
%17 = load i32, i32* %16
%18 = trunc i32 %17 to i8
%19 = call i32 @putchar(i8 signext %18)
%20 = getelementptr inbounds %struct.abc, %struct.abc* %1, 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 %struct.abc, %struct.abc* %1, i32 0, i32 0
%25 = load i32, i32* %24
%26 = trunc i32 %25 to i8
%27 = call i32 @putchar(i8 signext %26)
%28 = getelementptr inbounds %struct.abc, %struct.abc* %1, i32 0, i32 1
%29 = load i32, i32* %28
%30 = trunc i32 %29 to i8
%31 = call i32 @putchar(i8 signext %30)
ret void
}

LLVM IR (-O2):
define void @f15() {
%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
}