#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 i;
  int ia[128];
  int ib[128 + 1];
  for (i = 0; i < 128; i++) {
    ib[i] = i;
  }
  for (i = 1; i <= 128; i++) {
    ia[i - 1] = ib[i];
  }
  for (i = 1; i <= 128; i++) {
    if (ia[i - 1] != ib[i])
      abort();
  }
  return 0;
}


x86 assembly (clang, -O0):
<main1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x420,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x80,-0x4(%rbp)
jge    114b <main1+0x3b>
mov    -0x4(%rbp),%ecx
movslq -0x4(%rbp),%rax
mov    %ecx,-0x420(%rbp,%rax,4)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1122 <main1+0x12>
movl   $0x1,-0x4(%rbp)
cmpl   $0x80,-0x4(%rbp)
jg     1187 <main1+0x77>
movslq -0x4(%rbp),%rax
mov    -0x420(%rbp,%rax,4),%ecx
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
cltq
mov    %ecx,-0x210(%rbp,%rax,4)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1152 <main1+0x42>
movl   $0x1,-0x4(%rbp)
cmpl   $0x80,-0x4(%rbp)
jg     11d5 <main1+0xc5>
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x210(%rbp,%rax,4),%eax
movslq -0x4(%rbp),%rcx
cmp    -0x420(%rbp,%rcx,4),%eax
je     11c2 <main1+0xb2>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    11c7 <main1+0xb7>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    118e <main1+0x7e>
xor    %eax,%eax
add    $0x420,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main1>:
sub    $0x418,%rsp
movaps 0xed2(%rip),%xmm0
movaps %xmm0,(%rsp)
movaps 0xed7(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xedb(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xedf(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xee3(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xee7(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xeeb(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xeef(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xef3(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xef4(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xef5(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xef6(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movaps 0xef7(%rip),%xmm0
movaps %xmm0,0xc0(%rsp)
movaps 0xef8(%rip),%xmm0
movaps %xmm0,0xd0(%rsp)
movaps 0xef9(%rip),%xmm0
movaps %xmm0,0xe0(%rsp)
movaps 0xefa(%rip),%xmm0
movaps %xmm0,0xf0(%rsp)
movaps 0xefb(%rip),%xmm0
movaps %xmm0,0x100(%rsp)
movaps 0xefc(%rip),%xmm0
movaps %xmm0,0x110(%rsp)
movaps 0xefd(%rip),%xmm0
movaps %xmm0,0x120(%rsp)
movaps 0xefe(%rip),%xmm0
movaps %xmm0,0x130(%rsp)
movaps 0xeff(%rip),%xmm0
movaps %xmm0,0x140(%rsp)
movaps 0xf00(%rip),%xmm0
movaps %xmm0,0x150(%rsp)
movaps 0xf01(%rip),%xmm0
movaps %xmm0,0x160(%rsp)
movaps 0xf02(%rip),%xmm0
movaps %xmm0,0x170(%rsp)
movaps 0xf03(%rip),%xmm0
movaps %xmm0,0x180(%rsp)
movaps 0xf04(%rip),%xmm0
movaps %xmm0,0x190(%rsp)
movaps 0xf05(%rip),%xmm0
movaps %xmm0,0x1a0(%rsp)
movaps 0xf06(%rip),%xmm0
movaps %xmm0,0x1b0(%rsp)
movaps 0xf07(%rip),%xmm0
movaps %xmm0,0x1c0(%rsp)
movaps 0xf08(%rip),%xmm0
movaps %xmm0,0x1d0(%rsp)
movaps 0xf09(%rip),%xmm0
movaps %xmm0,0x1e0(%rsp)
movaps 0xf0a(%rip),%xmm0
movaps %xmm0,0x1f0(%rsp)
lea    0x4(%rsp),%rsi
lea    0x210(%rsp),%rdi
mov    $0x200,%edx
call   1040 <memcpy@plt>
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
mov    0x210(%rsp,%rax,4),%ecx
cmp    0x4(%rsp,%rax,4),%ecx
jne    135a <main1+0x23a>
mov    0x214(%rsp,%rax,4),%ecx
cmp    0x8(%rsp,%rax,4),%ecx
jne    135a <main1+0x23a>
mov    0x218(%rsp,%rax,4),%ecx
cmp    0xc(%rsp,%rax,4),%ecx
jne    135a <main1+0x23a>
mov    0x21c(%rsp,%rax,4),%ecx
cmp    0x10(%rsp,%rax,4),%ecx
jne    135a <main1+0x23a>
add    $0x4,%rax
cmp    $0x80,%rax
jne    1310 <main1+0x1f0>
xor    %eax,%eax
add    $0x418,%rsp
ret
xor    %eax,%eax
call   1030 <abort@plt>

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

LLVM IR (-O2):
define i32 @main1() {
%1 = alloca [128 x i32]
%2 = bitcast [128 x i32]* %1 to i8*
%3 = alloca [129 x i32]
%4 = bitcast [129 x i32]* %3 to i8*
%5 = bitcast [129 x i32]* %3 to <4 x i32>*
store <4 x i32> <i32 0, i32 1, i32 2, i32 3>, <4 x i32>* %5
%6 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 4
%7 = bitcast i32* %6 to <4 x i32>*
store <4 x i32> <i32 4, i32 5, i32 6, i32 7>, <4 x i32>* %7
%8 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 8
%9 = bitcast i32* %8 to <4 x i32>*
store <4 x i32> <i32 8, i32 9, i32 10, i32 11>, <4 x i32>* %9
%10 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 12
%11 = bitcast i32* %10 to <4 x i32>*
store <4 x i32> <i32 12, i32 13, i32 14, i32 15>, <4 x i32>* %11
%12 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 16
%13 = bitcast i32* %12 to <4 x i32>*
store <4 x i32> <i32 16, i32 17, i32 18, i32 19>, <4 x i32>* %13
%14 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 20
%15 = bitcast i32* %14 to <4 x i32>*
store <4 x i32> <i32 20, i32 21, i32 22, i32 23>, <4 x i32>* %15
%16 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 24
%17 = bitcast i32* %16 to <4 x i32>*
store <4 x i32> <i32 24, i32 25, i32 26, i32 27>, <4 x i32>* %17
%18 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 28
%19 = bitcast i32* %18 to <4 x i32>*
store <4 x i32> <i32 28, i32 29, i32 30, i32 31>, <4 x i32>* %19
%20 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 32
%21 = bitcast i32* %20 to <4 x i32>*
store <4 x i32> <i32 32, i32 33, i32 34, i32 35>, <4 x i32>* %21
%22 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 36
%23 = bitcast i32* %22 to <4 x i32>*
store <4 x i32> <i32 36, i32 37, i32 38, i32 39>, <4 x i32>* %23
%24 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 40
%25 = bitcast i32* %24 to <4 x i32>*
store <4 x i32> <i32 40, i32 41, i32 42, i32 43>, <4 x i32>* %25
%26 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 44
%27 = bitcast i32* %26 to <4 x i32>*
store <4 x i32> <i32 44, i32 45, i32 46, i32 47>, <4 x i32>* %27
%28 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 48
%29 = bitcast i32* %28 to <4 x i32>*
store <4 x i32> <i32 48, i32 49, i32 50, i32 51>, <4 x i32>* %29
%30 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 52
%31 = bitcast i32* %30 to <4 x i32>*
store <4 x i32> <i32 52, i32 53, i32 54, i32 55>, <4 x i32>* %31
%32 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 56
%33 = bitcast i32* %32 to <4 x i32>*
store <4 x i32> <i32 56, i32 57, i32 58, i32 59>, <4 x i32>* %33
%34 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 60
%35 = bitcast i32* %34 to <4 x i32>*
store <4 x i32> <i32 60, i32 61, i32 62, i32 63>, <4 x i32>* %35
%36 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 64
%37 = bitcast i32* %36 to <4 x i32>*
store <4 x i32> <i32 64, i32 65, i32 66, i32 67>, <4 x i32>* %37
%38 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 68
%39 = bitcast i32* %38 to <4 x i32>*
store <4 x i32> <i32 68, i32 69, i32 70, i32 71>, <4 x i32>* %39
%40 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 72
%41 = bitcast i32* %40 to <4 x i32>*
store <4 x i32> <i32 72, i32 73, i32 74, i32 75>, <4 x i32>* %41
%42 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 76
%43 = bitcast i32* %42 to <4 x i32>*
store <4 x i32> <i32 76, i32 77, i32 78, i32 79>, <4 x i32>* %43
%44 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 80
%45 = bitcast i32* %44 to <4 x i32>*
store <4 x i32> <i32 80, i32 81, i32 82, i32 83>, <4 x i32>* %45
%46 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 84
%47 = bitcast i32* %46 to <4 x i32>*
store <4 x i32> <i32 84, i32 85, i32 86, i32 87>, <4 x i32>* %47
%48 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 88
%49 = bitcast i32* %48 to <4 x i32>*
store <4 x i32> <i32 88, i32 89, i32 90, i32 91>, <4 x i32>* %49
%50 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 92
%51 = bitcast i32* %50 to <4 x i32>*
store <4 x i32> <i32 92, i32 93, i32 94, i32 95>, <4 x i32>* %51
%52 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 96
%53 = bitcast i32* %52 to <4 x i32>*
store <4 x i32> <i32 96, i32 97, i32 98, i32 99>, <4 x i32>* %53
%54 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 100
%55 = bitcast i32* %54 to <4 x i32>*
store <4 x i32> <i32 100, i32 101, i32 102, i32 103>, <4 x i32>* %55
%56 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 104
%57 = bitcast i32* %56 to <4 x i32>*
store <4 x i32> <i32 104, i32 105, i32 106, i32 107>, <4 x i32>* %57
%58 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 108
%59 = bitcast i32* %58 to <4 x i32>*
store <4 x i32> <i32 108, i32 109, i32 110, i32 111>, <4 x i32>* %59
%60 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 112
%61 = bitcast i32* %60 to <4 x i32>*
store <4 x i32> <i32 112, i32 113, i32 114, i32 115>, <4 x i32>* %61
%62 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 116
%63 = bitcast i32* %62 to <4 x i32>*
store <4 x i32> <i32 116, i32 117, i32 118, i32 119>, <4 x i32>* %63
%64 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 120
%65 = bitcast i32* %64 to <4 x i32>*
store <4 x i32> <i32 120, i32 121, i32 122, i32 123>, <4 x i32>* %65
%66 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 124
%67 = bitcast i32* %66 to <4 x i32>*
store <4 x i32> <i32 124, i32 125, i32 126, i32 127>, <4 x i32>* %67
%68 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 1
%69 = bitcast i32* %68 to i8*
br label %94
70: ; preds = %94
%71 = add nuw nsw i64 %95, 1
%72 = getelementptr inbounds [128 x i32], [128 x i32]* %1, i64 0, i64 %95
%73 = load i32, i32* %72
%74 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 %71
%75 = load i32, i32* %74
%76 = icmp eq i32 %73, %75
br i1 %76, label %77, label %102
77: ; preds = %70
%78 = add nuw nsw i64 %95, 2
%79 = getelementptr inbounds [128 x i32], [128 x i32]* %1, i64 0, i64 %71
%80 = load i32, i32* %79
%81 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 %78
%82 = load i32, i32* %81
%83 = icmp eq i32 %80, %82
br i1 %83, label %84, label %102
84: ; preds = %77
%85 = add nuw nsw i64 %95, 3
%86 = getelementptr inbounds [128 x i32], [128 x i32]* %1, i64 0, i64 %78
%87 = load i32, i32* %86
%88 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 %85
%89 = load i32, i32* %88
%90 = icmp eq i32 %87, %89
br i1 %90, label %91, label %102
91: ; preds = %84
%92 = add nuw nsw i64 %95, 4
%93 = icmp eq i64 %92, 129
br i1 %93, label %104, label %94
94: ; preds = %91, %0
%95 = phi i64 [ 1, %0 ], [ %92, %91 ]
%96 = add nsw i64 %95, -1
%97 = getelementptr inbounds [128 x i32], [128 x i32]* %1, i64 0, i64 %96
%98 = load i32, i32* %97
%99 = getelementptr inbounds [129 x i32], [129 x i32]* %3, i64 0, i64 %95
%100 = load i32, i32* %99
%101 = icmp eq i32 %98, %100
br i1 %101, label %70, label %102
102: ; preds = %84, %77, %70, %94
%103 = tail call i32 (...) @abort()
unreachable
104: ; preds = %91
ret i32 0
}