#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];
  } s;
  char cb[16] = {0, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45};
  int i;
  for (i = 0; i < 16; i++) {
    s.ca[i] = cb[i];
  }
  for (i = 0; i < 16; i++) {
    if (s.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,-0x20(%rbp)
mov    0xede(%rip),%rax
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x24(%rbp)
cmpl   $0x10,-0x24(%rbp)
jge    115d <main1+0x4d>
movslq -0x24(%rbp),%rax
mov    -0x20(%rbp,%rax,1),%cl
movslq -0x24(%rbp),%rax
mov    %cl,-0x10(%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 -0x10(%rbp,%rax,1),%eax
movslq -0x24(%rbp),%rcx
movsbl -0x20(%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):
%struct.anon = type { [16 x i8] }
@__const.main1.cb = [16 x i8] c"\00\03\06\09\0C\0F\12\15\18\1B\1E!$'*-"
define i32 @main1() {
%1 = alloca %struct.anon
%2 = alloca [16 x i8]
%3 = alloca i32
%4 = bitcast [16 x i8]* %2 to i8*
store i32 0, i32* %3
br label %5
5: ; preds = %17, %0
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 16
br i1 %7, label %8, label %20
8: ; preds = %5
%9 = load i32, i32* %3
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 %10
%12 = load i8, i8* %11
%13 = getelementptr inbounds %struct.anon, %struct.anon* %1, i32 0, i32 0
%14 = load i32, i32* %3
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [16 x i8], [16 x i8]* %13, i64 0, i64 %15
store i8 %12, i8* %16
br label %17
17: ; preds = %8
%18 = load i32, i32* %3
%19 = add nsw i32 %18, 1
store i32 %19, i32* %3
br label %5
20: ; preds = %5
store i32 0, i32* %3
br label %21
21: ; preds = %40, %20
%22 = load i32, i32* %3
%23 = icmp slt i32 %22, 16
br i1 %23, label %24, label %43
24: ; preds = %21
%25 = getelementptr inbounds %struct.anon, %struct.anon* %1, i32 0, i32 0
%26 = load i32, i32* %3
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [16 x i8], [16 x i8]* %25, i64 0, i64 %27
%29 = load i8, i8* %28
%30 = sext i8 %29 to i32
%31 = load i32, i32* %3
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 %32
%34 = load i8, i8* %33
%35 = sext i8 %34 to i32
%36 = icmp ne i32 %30, %35
br i1 %36, label %37, label %39
37: ; preds = %24
%38 = call i32 (...) @abort()
unreachable
39: ; preds = %24
br label %40
40: ; preds = %39
%41 = load i32, i32* %3
%42 = add nsw i32 %41, 1
store i32 %42, i32* %3
br label %21
43: ; preds = %21
ret i32 0
}

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