#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();
int main1() {
  struct {
    char ca[16];
    char cb[16];
  } s;
  int i;
  for (i = 0; i < 16; i++) {
    s.cb[i] = 3 * i;
  }
  for (i = 0; i < 16; i++) {
    s.ca[i] = s.cb[i];
  }
  for (i = 0; i < 16; i++) {
    if (s.ca[i] != s.cb[i])
      abort();
  }
  return 0;
}


x86 assembly (clang, -O0):
<main1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x24(%rbp)
cmpl   $0x10,-0x24(%rbp)
jge    1145 <main1+0x35>
imul   $0x3,-0x24(%rbp),%eax
mov    %al,%cl
movslq -0x24(%rbp),%rax
mov    %cl,-0x10(%rbp,%rax,1)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    111f <main1+0xf>
movl   $0x0,-0x24(%rbp)
cmpl   $0x10,-0x24(%rbp)
jge    1174 <main1+0x64>
movslq -0x24(%rbp),%rax
mov    -0x10(%rbp,%rax,1),%cl
movslq -0x24(%rbp),%rax
mov    %cl,-0x20(%rbp,%rax,1)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    114c <main1+0x3c>
movl   $0x0,-0x24(%rbp)
cmpl   $0x10,-0x24(%rbp)
jge    11b9 <main1+0xa9>
movslq -0x24(%rbp),%rax
movsbl -0x20(%rbp,%rax,1),%eax
movslq -0x24(%rbp),%rcx
movsbl -0x10(%rbp,%rcx,1),%ecx
cmp    %ecx,%eax
je     11a6 <main1+0x96>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    11ab <main1+0x9b>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    117b <main1+0x6b>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

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

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

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