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


x86 assembly (clang, -O0):
<main1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x420,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x83,-0x8(%rbp)
jge    114e <main1+0x3e>
mov    -0x8(%rbp),%ecx
movslq -0x8(%rbp),%rax
mov    %ecx,-0x420(%rbp,%rax,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1125 <main1+0x15>
movl   $0x0,-0x8(%rbp)
cmpl   $0x80,-0x8(%rbp)
jge    118a <main1+0x7a>
mov    -0x8(%rbp),%eax
add    -0x4(%rbp),%eax
cltq
mov    -0x420(%rbp,%rax,4),%ecx
movslq -0x8(%rbp),%rax
mov    %ecx,-0x210(%rbp,%rax,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1155 <main1+0x45>
movl   $0x0,-0x8(%rbp)
cmpl   $0x80,-0x8(%rbp)
jge    11d9 <main1+0xc9>
movslq -0x8(%rbp),%rax
mov    -0x210(%rbp,%rax,4),%eax
mov    -0x8(%rbp),%ecx
add    -0x4(%rbp),%ecx
movslq %ecx,%rcx
cmp    -0x420(%rbp,%rcx,4),%eax
je     11c6 <main1+0xb6>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    11cb <main1+0xbb>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1191 <main1+0x81>
xor    %eax,%eax
add    $0x420,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main1>:
push   %rbx
sub    $0x410,%rsp
movaps 0xed1(%rip),%xmm0
movaps %xmm0,(%rsp)
movaps 0xed6(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xeda(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xede(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xee2(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xee6(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xeea(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xeee(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xef2(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xef3(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xef4(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xef5(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movaps 0xef6(%rip),%xmm0
movaps %xmm0,0xc0(%rsp)
movaps 0xef7(%rip),%xmm0
movaps %xmm0,0xd0(%rsp)
movaps 0xef8(%rip),%xmm0
movaps %xmm0,0xe0(%rsp)
movaps 0xef9(%rip),%xmm0
movaps %xmm0,0xf0(%rsp)
movaps 0xefa(%rip),%xmm0
movaps %xmm0,0x100(%rsp)
movaps 0xefb(%rip),%xmm0
movaps %xmm0,0x110(%rsp)
movaps 0xefc(%rip),%xmm0
movaps %xmm0,0x120(%rsp)
movaps 0xefd(%rip),%xmm0
movaps %xmm0,0x130(%rsp)
movaps 0xefe(%rip),%xmm0
movaps %xmm0,0x140(%rsp)
movaps 0xeff(%rip),%xmm0
movaps %xmm0,0x150(%rsp)
movaps 0xf00(%rip),%xmm0
movaps %xmm0,0x160(%rsp)
movaps 0xf01(%rip),%xmm0
movaps %xmm0,0x170(%rsp)
movaps 0xf02(%rip),%xmm0
movaps %xmm0,0x180(%rsp)
movaps 0xf03(%rip),%xmm0
movaps %xmm0,0x190(%rsp)
movaps 0xf04(%rip),%xmm0
movaps %xmm0,0x1a0(%rsp)
movaps 0xf05(%rip),%xmm0
movaps %xmm0,0x1b0(%rsp)
movaps 0xf06(%rip),%xmm0
movaps %xmm0,0x1c0(%rsp)
movaps 0xf07(%rip),%xmm0
movaps %xmm0,0x1d0(%rsp)
movaps 0xf08(%rip),%xmm0
movaps %xmm0,0x1e0(%rsp)
movaps 0xf09(%rip),%xmm0
movaps %xmm0,0x1f0(%rsp)
movabs $0x8100000080,%rax
mov    %rax,0x200(%rsp)
movl   $0x82,0x208(%rsp)
movslq %edi,%rax
lea    (%rsp,%rax,4),%rbx
lea    0x210(%rsp),%rdi
mov    $0x200,%edx
mov    %rbx,%rsi
call   1040 <memcpy@plt>
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
mov    0x210(%rsp,%rax,4),%ecx
cmp    (%rbx,%rax,4),%ecx
jne    137a <main1+0x25a>
mov    0x214(%rsp,%rax,4),%ecx
cmp    0x4(%rbx,%rax,4),%ecx
jne    137a <main1+0x25a>
mov    0x218(%rsp,%rax,4),%ecx
cmp    0x8(%rbx,%rax,4),%ecx
jne    137a <main1+0x25a>
mov    0x21c(%rsp,%rax,4),%ecx
cmp    0xc(%rbx,%rax,4),%ecx
jne    137a <main1+0x25a>
add    $0x4,%rax
cmp    $0x80,%rax
jne    1330 <main1+0x210>
xor    %eax,%eax
add    $0x410,%rsp
pop    %rbx
ret
xor    %eax,%eax
call   1030 <abort@plt>

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

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