#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*/ abort();
__attribute__((no)) int main1() {
  union {
    unsigned char a[16] __attribute__((__aligned__(16)));
    unsigned char b[16] __attribute__((__aligned__(16)));
  } s;
  int i;
  for (i = 0; i < 16; i++) {
    s.b[i] = i;
  }
  for (i = 0; i < 16; i++) {
    s.a[i] = s.b[i] + 1;
  }
  for (i = 0; i < 16; i++) {
    if (s.a[i] != i + 1)
      abort();
  }
  return 0;
}


x86 assembly (clang, -O0):
<main1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x14(%rbp)
cmpl   $0x10,-0x14(%rbp)
jge    1144 <main1+0x34>
mov    -0x14(%rbp),%eax
mov    %al,%cl
movslq -0x14(%rbp),%rax
mov    %cl,-0x10(%rbp,%rax,1)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    111f <main1+0xf>
movl   $0x0,-0x14(%rbp)
cmpl   $0x10,-0x14(%rbp)
jge    1179 <main1+0x69>
movslq -0x14(%rbp),%rax
movzbl -0x10(%rbp,%rax,1),%eax
add    $0x1,%eax
mov    %al,%cl
movslq -0x14(%rbp),%rax
mov    %cl,-0x10(%rbp,%rax,1)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    114b <main1+0x3b>
movl   $0x0,-0x14(%rbp)
cmpl   $0x10,-0x14(%rbp)
jge    11bb <main1+0xab>
movslq -0x14(%rbp),%rax
movzbl -0x10(%rbp,%rax,1),%eax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
je     11a8 <main1+0x98>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    11ad <main1+0x9d>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1180 <main1+0x70>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
%union.anon = type { [16 x i8] }
define i32 @main1() {
%1 = alloca %union.anon
%2 = alloca i32
store i32 0, i32* %2
br label %3
3: ; preds = %13, %0
%4 = load i32, i32* %2
%5 = icmp slt i32 %4, 16
br i1 %5, label %6, label %16
6: ; preds = %3
%7 = load i32, i32* %2
%8 = trunc i32 %7 to i8
%9 = bitcast %union.anon* %1 to [16 x i8]*
%10 = load i32, i32* %2
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [16 x i8], [16 x i8]* %9, i64 0, i64 %11
store i8 %8, i8* %12
br label %13
13: ; preds = %6
%14 = load i32, i32* %2
%15 = add nsw i32 %14, 1
store i32 %15, i32* %2
br label %3
16: ; preds = %3
store i32 0, i32* %2
br label %17
17: ; preds = %33, %16
%18 = load i32, i32* %2
%19 = icmp slt i32 %18, 16
br i1 %19, label %20, label %36
20: ; preds = %17
%21 = bitcast %union.anon* %1 to [16 x i8]*
%22 = load i32, i32* %2
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [16 x i8], [16 x i8]* %21, i64 0, i64 %23
%25 = load i8, i8* %24
%26 = zext i8 %25 to i32
%27 = add nsw i32 %26, 1
%28 = trunc i32 %27 to i8
%29 = bitcast %union.anon* %1 to [16 x i8]*
%30 = load i32, i32* %2
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [16 x i8], [16 x i8]* %29, i64 0, i64 %31
store i8 %28, i8* %32
br label %33
33: ; preds = %20
%34 = load i32, i32* %2
%35 = add nsw i32 %34, 1
store i32 %35, i32* %2
br label %17
36: ; preds = %17
store i32 0, i32* %2
br label %37
37: ; preds = %53, %36
%38 = load i32, i32* %2
%39 = icmp slt i32 %38, 16
br i1 %39, label %40, label %56
40: ; preds = %37
%41 = bitcast %union.anon* %1 to [16 x i8]*
%42 = load i32, i32* %2
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [16 x i8], [16 x i8]* %41, i64 0, i64 %43
%45 = load i8, i8* %44
%46 = zext i8 %45 to i32
%47 = load i32, i32* %2
%48 = add nsw i32 %47, 1
%49 = icmp ne i32 %46, %48
br i1 %49, label %50, label %52
50: ; preds = %40
%51 = call i32 (...) @abort()
unreachable
52: ; preds = %40
br label %53
53: ; preds = %52
%54 = load i32, i32* %2
%55 = add nsw i32 %54, 1
store i32 %55, i32* %2
br label %37
56: ; preds = %37
ret i32 0
}

LLVM IR (-O2):
define i32 @main1() {
ret i32 0
}