#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 */
typedef int uint32_t;

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


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeca(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xec7(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xec4(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xec1(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xebe(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xebb(%rip),%rax
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x44(%rbp)
cmpl   $0xa,-0x44(%rbp)
jge    11c9 <main+0xa9>
lea    -0x20(%rbp),%rdi
call   1040 <xor128@plt>
mov    %eax,-0x4c(%rbp)
lea    -0x30(%rbp),%rdi
call   1040 <xor128@plt>
mov    %eax,%ecx
mov    -0x4c(%rbp),%eax
xor    %ecx,%eax
mov    %eax,-0x48(%rbp)
lea    -0x40(%rbp),%rdi
call   1040 <xor128@plt>
mov    -0x48(%rbp),%esi
mov    %eax,%edx
lea    0xe7a(%rip),%rdi
call   1030 <printf@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1178 <main+0x58>
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x30,%rsp
movaps 0xecd(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xed1(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xed5(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0x20(%rsp),%r14
mov    %r14,%rdi
call   1040 <xor128@plt>
mov    %eax,%ebp
lea    0x10(%rsp),%r15
mov    %r15,%rdi
call   1040 <xor128@plt>
xor    %eax,%ebp
mov    %rsp,%r12
mov    %r12,%rdi
call   1040 <xor128@plt>
lea    0xeb1(%rip),%rbx
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r14,%rdi
call   1040 <xor128@plt>
mov    %eax,%ebp
mov    %r15,%rdi
call   1040 <xor128@plt>
xor    %eax,%ebp
mov    %r12,%rdi
call   1040 <xor128@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r14,%rdi
call   1040 <xor128@plt>
mov    %eax,%ebp
mov    %r15,%rdi
call   1040 <xor128@plt>
xor    %eax,%ebp
mov    %r12,%rdi
call   1040 <xor128@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r14,%rdi
call   1040 <xor128@plt>
mov    %eax,%ebp
mov    %r15,%rdi
call   1040 <xor128@plt>
xor    %eax,%ebp
mov    %r12,%rdi
call   1040 <xor128@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r14,%rdi
call   1040 <xor128@plt>
mov    %eax,%ebp
mov    %r15,%rdi
call   1040 <xor128@plt>
xor    %eax,%ebp
mov    %r12,%rdi
call   1040 <xor128@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r14,%rdi
call   1040 <xor128@plt>
mov    %eax,%ebp
mov    %r15,%rdi
call   1040 <xor128@plt>
xor    %eax,%ebp
mov    %r12,%rdi
call   1040 <xor128@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r14,%rdi
call   1040 <xor128@plt>
mov    %eax,%ebp
mov    %r15,%rdi
call   1040 <xor128@plt>
xor    %eax,%ebp
mov    %r12,%rdi
call   1040 <xor128@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r14,%rdi
call   1040 <xor128@plt>
mov    %eax,%ebp
mov    %r15,%rdi
call   1040 <xor128@plt>
xor    %eax,%ebp
mov    %r12,%rdi
call   1040 <xor128@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r14,%rdi
call   1040 <xor128@plt>
mov    %eax,%ebp
mov    %r15,%rdi
call   1040 <xor128@plt>
xor    %eax,%ebp
mov    %r12,%rdi
call   1040 <xor128@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r14,%rdi
call   1040 <xor128@plt>
mov    %eax,%ebp
mov    %r15,%rdi
call   1040 <xor128@plt>
xor    %eax,%ebp
mov    %r12,%rdi
call   1040 <xor128@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.s1 = [4 x i32] [i32 1, i32 0, i32 0, i32 0]
@__const.main.S0 = [4 x i32] [i32 0, i32 362436069, i32 521288629, i32 88675123]
@__const.main.S1 = [4 x i32] [i32 1, i32 362436069, i32 521288629, i32 88675123]
@.str = [11 x i8] c"%10u %10u\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [4 x i32]
%3 = alloca [4 x i32]
%4 = alloca [4 x i32]
%5 = alloca i32
store i32 0, i32* %1
%6 = bitcast [4 x i32]* %2 to i8*
%7 = bitcast [4 x i32]* %3 to i8*
%8 = bitcast [4 x i32]* %4 to i8*
store i32 0, i32* %5
br label %9
9: ; preds = %21, %0
%10 = load i32, i32* %5
%11 = icmp slt i32 %10, 10
br i1 %11, label %12, label %24
12: ; preds = %9
%13 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 0, i64 0
%14 = call i32 @xor128(i32* %13)
%15 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 0
%16 = call i32 @xor128(i32* %15)
%17 = xor i32 %14, %16
%18 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 0
%19 = call i32 @xor128(i32* %18)
%20 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %17, i32 %19)
br label %21
21: ; preds = %12
%22 = load i32, i32* %5
%23 = add nsw i32 %22, 1
store i32 %23, i32* %5
br label %9
24: ; preds = %9
%25 = load i32, i32* %1
ret i32 %25
}

LLVM IR (-O2):
@__const.main.s1 = [4 x i32] [i32 1, i32 0, i32 0, i32 0]
@__const.main.S0 = [4 x i32] [i32 0, i32 362436069, i32 521288629, i32 88675123]
@__const.main.S1 = [4 x i32] [i32 1, i32 362436069, i32 521288629, i32 88675123]
@.str = [11 x i8] c"%10u %10u\0A\00"
define i32 @main() {
%1 = alloca [4 x i32]
%2 = alloca [4 x i32]
%3 = alloca [4 x i32]
%4 = bitcast [4 x i32]* %1 to i8*
%5 = bitcast [4 x i32]* %2 to i8*
%6 = bitcast [4 x i32]* %3 to i8*
%7 = getelementptr inbounds [4 x i32], [4 x i32]* %1, i64 0, i64 0
%8 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 0, i64 0
%9 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 0
%10 = call i32 @xor128(i32* %7)
%11 = call i32 @xor128(i32* %8)
%12 = xor i32 %11, %10
%13 = call i32 @xor128(i32* %9)
%14 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %12, i32 %13)
%15 = call i32 @xor128(i32* %7)
%16 = call i32 @xor128(i32* %8)
%17 = xor i32 %16, %15
%18 = call i32 @xor128(i32* %9)
%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(i32* %7)
%21 = call i32 @xor128(i32* %8)
%22 = xor i32 %21, %20
%23 = call i32 @xor128(i32* %9)
%24 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %22, i32 %23)
%25 = call i32 @xor128(i32* %7)
%26 = call i32 @xor128(i32* %8)
%27 = xor i32 %26, %25
%28 = call i32 @xor128(i32* %9)
%29 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %27, i32 %28)
%30 = call i32 @xor128(i32* %7)
%31 = call i32 @xor128(i32* %8)
%32 = xor i32 %31, %30
%33 = call i32 @xor128(i32* %9)
%34 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %32, i32 %33)
%35 = call i32 @xor128(i32* %7)
%36 = call i32 @xor128(i32* %8)
%37 = xor i32 %36, %35
%38 = call i32 @xor128(i32* %9)
%39 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %37, i32 %38)
%40 = call i32 @xor128(i32* %7)
%41 = call i32 @xor128(i32* %8)
%42 = xor i32 %41, %40
%43 = call i32 @xor128(i32* %9)
%44 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %42, i32 %43)
%45 = call i32 @xor128(i32* %7)
%46 = call i32 @xor128(i32* %8)
%47 = xor i32 %46, %45
%48 = call i32 @xor128(i32* %9)
%49 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %47, i32 %48)
%50 = call i32 @xor128(i32* %7)
%51 = call i32 @xor128(i32* %8)
%52 = xor i32 %51, %50
%53 = call i32 @xor128(i32* %9)
%54 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %52, i32 %53)
%55 = call i32 @xor128(i32* %7)
%56 = call i32 @xor128(i32* %8)
%57 = xor i32 %56, %55
%58 = call i32 @xor128(i32* %9)
%59 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %57, i32 %58)
ret i32 0
}