#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() {
  char cb[16] = {0, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45};
  char ca[16];
  int i;
  for (i = 0; i < 16; i++) {
    ca[i] = cb[i];
  }
  for (i = 0; i < 16; i++) {
    if (ca[i] != cb[i])
      abort();
  }
  return 0;
}


x86 assembly (clang, -O0):
<main1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0xee1(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0xede(%rip),%rax
mov    %rax,-0x8(%rbp)
movl   $0x0,-0x24(%rbp)
cmpl   $0x10,-0x24(%rbp)
jge    115d <main1+0x4d>
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    1135 <main1+0x25>
movl   $0x0,-0x24(%rbp)
cmpl   $0x10,-0x24(%rbp)
jge    11a2 <main1+0x92>
movslq -0x24(%rbp),%rax
movsbl -0x20(%rbp,%rax,1),%eax
movslq -0x24(%rbp),%rcx
movsbl -0x10(%rbp,%rcx,1),%ecx
cmp    %ecx,%eax
je     118f <main1+0x7f>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    1194 <main1+0x84>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1164 <main1+0x54>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@__const.main1.cb = [16 x i8] c"\00\03\06\09\0C\0F\12\15\18\1B\1E!$'*-"
define i32 @main1() {
%1 = alloca [16 x i8]
%2 = alloca [16 x i8]
%3 = alloca i32
%4 = bitcast [16 x i8]* %1 to i8*
store i32 0, i32* %3
br label %5
5: ; preds = %16, %0
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 16
br i1 %7, label %8, label %19
8: ; preds = %5
%9 = load i32, i32* %3
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [16 x i8], [16 x i8]* %1, i64 0, i64 %10
%12 = load i8, i8* %11
%13 = load i32, i32* %3
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 %14
store i8 %12, i8* %15
br label %16
16: ; preds = %8
%17 = load i32, i32* %3
%18 = add nsw i32 %17, 1
store i32 %18, i32* %3
br label %5
19: ; preds = %5
store i32 0, i32* %3
br label %20
20: ; preds = %38, %19
%21 = load i32, i32* %3
%22 = icmp slt i32 %21, 16
br i1 %22, label %23, label %41
23: ; preds = %20
%24 = load i32, i32* %3
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 %25
%27 = load i8, i8* %26
%28 = sext i8 %27 to i32
%29 = load i32, i32* %3
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [16 x i8], [16 x i8]* %1, i64 0, i64 %30
%32 = load i8, i8* %31
%33 = sext i8 %32 to i32
%34 = icmp ne i32 %28, %33
br i1 %34, label %35, label %37
35: ; preds = %23
%36 = call i32 (...) @abort()
unreachable
37: ; preds = %23
br label %38
38: ; preds = %37
%39 = load i32, i32* %3
%40 = add nsw i32 %39, 1
store i32 %40, i32* %3
br label %20
41: ; preds = %20
ret i32 0
}

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