#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(int *pib) {
  int i;
  int ia[16 + 4];
  int ic[16 + 4] = {0, 1, 3, 5, 7, 11, 13, 17, 0, 2, 6, 10};
  for (i = 4; i < 16; i++) {
    ia[i] = pib[i - 4];
  }
  for (i = 4; i < 16; i++) {
    if (ia[i] != pib[i - 4])
      abort();
  }
  return 0;
}


x86 assembly (clang, -O0):
<main1>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0xb0(%rbp),%rdi
lea    0xec3(%rip),%rsi
mov    $0x50,%edx
call   1040 <memcpy@plt>
movl   $0x4,-0xc(%rbp)
cmpl   $0x10,-0xc(%rbp)
jge    117e <main1+0x5e>
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
sub    $0x4,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%ecx
movslq -0xc(%rbp),%rax
mov    %ecx,-0x60(%rbp,%rax,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    114e <main1+0x2e>
movl   $0x4,-0xc(%rbp)
cmpl   $0x10,-0xc(%rbp)
jge    11c7 <main1+0xa7>
movslq -0xc(%rbp),%rax
mov    -0x60(%rbp,%rax,4),%eax
mov    -0x8(%rbp),%rcx
mov    -0xc(%rbp),%edx
sub    $0x4,%edx
movslq %edx,%rdx
cmp    (%rcx,%rdx,4),%eax
je     11b4 <main1+0x94>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    11b9 <main1+0x99>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1185 <main1+0x65>
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbp
ret

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

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

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