#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 */
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  int member_0;
  int member_1;
  int member_2;
  int member_3;
};
typedef TYPE_1__ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int);
int xor128(TYPE_1__ *);
int main(void) {
  uint32_t s[2][4] = {{1, 362436069, 521288629, 88675123},
                      {2, 362436069, 521288629, 88675123}};
  for (int i = 0; i < 10; i++) {
    printf("%10u %10u\n", xor128(s[0]), xor128(s[1]));
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x90(%rbp),%rdi
lea    0xeb0(%rip),%rsi
mov    $0x80,%edx
call   1040 <memcpy@plt>
movl   $0x0,-0x94(%rbp)
cmpl   $0xa,-0x94(%rbp)
jge    11bb <main+0x8b>
lea    -0x90(%rbp),%rdi
call   1050 <xor128@plt>
mov    %eax,-0x98(%rbp)
lea    -0x90(%rbp),%rdi
add    $0x40,%rdi
call   1050 <xor128@plt>
mov    -0x98(%rbp),%esi
mov    %eax,%edx
lea    0xede(%rip),%rdi
call   1030 <printf@plt>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    1164 <main+0x34>
mov    -0x4(%rbp),%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x88,%rsp
movaps 0xf3c(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xf20(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xf04(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xee8(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xecc(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xeb0(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xe94(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xe78(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0x40(%rsp),%r14
mov    %rsp,%r15
mov    %r15,%rdi
call   1040 <xor128@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1040 <xor128@plt>
lea    0xed3(%rip),%rbx
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1040 <xor128@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1040 <xor128@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1040 <xor128@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1040 <xor128@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1040 <xor128@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1040 <xor128@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1040 <xor128@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1040 <xor128@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1040 <xor128@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1040 <xor128@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1040 <xor128@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1040 <xor128@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1040 <xor128@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1040 <xor128@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1040 <xor128@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1040 <xor128@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1040 <xor128@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1040 <xor128@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x88,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.TYPE_3__ = type { i32, i32, i32, i32 }
@__const.main.s = [2 x [4 x %struct.TYPE_3__]] [[4 x %struct.TYPE_3__] [%struct.TYPE_3__ { i32 1, i32 362436069, i32 521288629, i32 88675123 }, %struct.TYPE_3__ zeroinitializer, %struct.TYPE_3__ zeroinitializer, %struct.TYPE_3__ zeroinitializer], [4 x %struct.TYPE_3__] [%struct.TYPE_3__ { i32 2, i32 362436069, i32 521288629, i32 88675123 }, %struct.TYPE_3__ zeroinitializer, %struct.TYPE_3__ zeroinitializer, %struct.TYPE_3__ zeroinitializer]]
@.str = [11 x i8] c"%10u %10u\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [2 x [4 x %struct.TYPE_3__]]
%3 = alloca i32
store i32 0, i32* %1
%4 = bitcast [2 x [4 x %struct.TYPE_3__]]* %2 to i8*
store i32 0, i32* %3
br label %5
5: ; preds = %16, %0
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 10
br i1 %7, label %8, label %19
8: ; preds = %5
%9 = getelementptr inbounds [2 x [4 x %struct.TYPE_3__]], [2 x [4 x %struct.TYPE_3__]]* %2, i64 0, i64 0
%10 = getelementptr inbounds [4 x %struct.TYPE_3__], [4 x %struct.TYPE_3__]* %9, i64 0, i64 0
%11 = call i32 @xor128(%struct.TYPE_3__* %10)
%12 = getelementptr inbounds [2 x [4 x %struct.TYPE_3__]], [2 x [4 x %struct.TYPE_3__]]* %2, i64 0, i64 1
%13 = getelementptr inbounds [4 x %struct.TYPE_3__], [4 x %struct.TYPE_3__]* %12, i64 0, i64 0
%14 = call i32 @xor128(%struct.TYPE_3__* %13)
%15 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %11, i32 %14)
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
%20 = load i32, i32* %1
ret i32 %20
}

LLVM IR (-O2):
%struct.TYPE_3__ = type { i32, i32, i32, i32 }
@__const.main.s = [2 x [4 x %struct.TYPE_3__]] [[4 x %struct.TYPE_3__] [%struct.TYPE_3__ { i32 1, i32 362436069, i32 521288629, i32 88675123 }, %struct.TYPE_3__ zeroinitializer, %struct.TYPE_3__ zeroinitializer, %struct.TYPE_3__ zeroinitializer], [4 x %struct.TYPE_3__] [%struct.TYPE_3__ { i32 2, i32 362436069, i32 521288629, i32 88675123 }, %struct.TYPE_3__ zeroinitializer, %struct.TYPE_3__ zeroinitializer, %struct.TYPE_3__ zeroinitializer]]
@.str = [11 x i8] c"%10u %10u\0A\00"
define i32 @main() {
%1 = alloca [2 x [4 x %struct.TYPE_3__]]
%2 = bitcast [2 x [4 x %struct.TYPE_3__]]* %1 to i8*
%3 = getelementptr inbounds [2 x [4 x %struct.TYPE_3__]], [2 x [4 x %struct.TYPE_3__]]* %1, i64 0, i64 0, i64 0
%4 = getelementptr inbounds [2 x [4 x %struct.TYPE_3__]], [2 x [4 x %struct.TYPE_3__]]* %1, i64 0, i64 1, i64 0
%5 = call i32 @xor128(%struct.TYPE_3__* %3)
%6 = call i32 @xor128(%struct.TYPE_3__* %4)
%7 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %6)
%8 = call i32 @xor128(%struct.TYPE_3__* %3)
%9 = call i32 @xor128(%struct.TYPE_3__* %4)
%10 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %8, i32 %9)
%11 = call i32 @xor128(%struct.TYPE_3__* %3)
%12 = call i32 @xor128(%struct.TYPE_3__* %4)
%13 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %11, i32 %12)
%14 = call i32 @xor128(%struct.TYPE_3__* %3)
%15 = call i32 @xor128(%struct.TYPE_3__* %4)
%16 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %14, i32 %15)
%17 = call i32 @xor128(%struct.TYPE_3__* %3)
%18 = call i32 @xor128(%struct.TYPE_3__* %4)
%19 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %17, i32 %18)
%20 = call i32 @xor128(%struct.TYPE_3__* %3)
%21 = call i32 @xor128(%struct.TYPE_3__* %4)
%22 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %20, i32 %21)
%23 = call i32 @xor128(%struct.TYPE_3__* %3)
%24 = call i32 @xor128(%struct.TYPE_3__* %4)
%25 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %23, i32 %24)
%26 = call i32 @xor128(%struct.TYPE_3__* %3)
%27 = call i32 @xor128(%struct.TYPE_3__* %4)
%28 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %26, i32 %27)
%29 = call i32 @xor128(%struct.TYPE_3__* %3)
%30 = call i32 @xor128(%struct.TYPE_3__* %4)
%31 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %29, i32 %30)
%32 = call i32 @xor128(%struct.TYPE_3__* %3)
%33 = call i32 @xor128(%struct.TYPE_3__* %4)
%34 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %32, i32 %33)
ret i32 0
}