#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 splitmix32(int *);
int xorshift1024star_32(int *);
int main(void) {
  uint32_t s[2][33];
  uint32_t seed[2] = {0, 1};
  for (int i = 0; i < 32; i++) {
    s[0][i] = splitmix32(&seed[0]);
    s[1][i] = splitmix32(&seed[1]);
  }
  s[0][32] = s[1][32] = 0;
  for (int i = 0; i < 10; i++) {
    printf("%10u %10u\n", xorshift1024star_32(s[0]), xorshift1024star_32(s[1]));
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x130,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeb7(%rip),%rax
mov    %rax,-0x118(%rbp)
movl   $0x0,-0x11c(%rbp)
cmpl   $0x20,-0x11c(%rbp)
jge    11b7 <main+0x87>
lea    -0x118(%rbp),%rdi
call   1040 <splitmix32@plt>
mov    %eax,%ecx
movslq -0x11c(%rbp),%rax
mov    %ecx,-0x110(%rbp,%rax,4)
lea    -0x118(%rbp),%rdi
add    $0x4,%rdi
call   1040 <splitmix32@plt>
mov    %eax,%ecx
movslq -0x11c(%rbp),%rax
mov    %ecx,-0x8c(%rbp,%rax,4)
mov    -0x11c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x11c(%rbp)
jmp    115a <main+0x2a>
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x90(%rbp)
movl   $0x0,-0x120(%rbp)
cmpl   $0xa,-0x120(%rbp)
jge    122c <main+0xfc>
lea    -0x110(%rbp),%rdi
call   1050 <xorshift1024star_32@plt>
mov    %eax,-0x124(%rbp)
lea    -0x110(%rbp),%rdi
add    $0x84,%rdi
call   1050 <xorshift1024star_32@plt>
mov    -0x124(%rbp),%esi
mov    %eax,%edx
lea    0xdf5(%rip),%rdi
call   1030 <printf@plt>
mov    -0x120(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x120(%rbp)
jmp    11d2 <main+0xa2>
mov    -0x4(%rbp),%eax
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x118,%rsp
movabs $0x100000000,%rax
mov    %rax,0x8(%rsp)
mov    $0xffffffffffffffe0,%rbp
lea    0xc(%rsp),%r14
lea    0x8(%rsp),%rbx
nopl   (%rax)
mov    %rbx,%rdi
call   1040 <splitmix32@plt>
mov    %eax,0x90(%rsp,%rbp,4)
mov    %r14,%rdi
call   1040 <splitmix32@plt>
mov    %eax,0x114(%rsp,%rbp,4)
inc    %rbp
jne    1160 <main+0x30>
lea    0x94(%rsp),%r14
movl   $0x0,0x114(%rsp)
movl   $0x0,0x90(%rsp)
lea    0x10(%rsp),%r15
mov    %r15,%rdi
call   1050 <xorshift1024star_32@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1050 <xorshift1024star_32@plt>
lea    0xe41(%rip),%rbx
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1050 <xorshift1024star_32@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1050 <xorshift1024star_32@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1050 <xorshift1024star_32@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1050 <xorshift1024star_32@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1050 <xorshift1024star_32@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1050 <xorshift1024star_32@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1050 <xorshift1024star_32@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1050 <xorshift1024star_32@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1050 <xorshift1024star_32@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1050 <xorshift1024star_32@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1050 <xorshift1024star_32@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1050 <xorshift1024star_32@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1050 <xorshift1024star_32@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1050 <xorshift1024star_32@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1050 <xorshift1024star_32@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1050 <xorshift1024star_32@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1050 <xorshift1024star_32@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1050 <xorshift1024star_32@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x118,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [11 x i8] c"%10u %10u\0A\00"
define i32 @main() {
%1 = alloca [2 x [33 x i32]]
%2 = alloca i64
%3 = bitcast i64* %2 to [2 x i32]*
%4 = bitcast [2 x [33 x i32]]* %1 to i8*
%5 = bitcast i64* %2 to i8*
store i64 4294967296, i64* %2
%6 = bitcast i64* %2 to i32*
%7 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
br label %43
8: ; preds = %43
%9 = getelementptr inbounds [2 x [33 x i32]], [2 x [33 x i32]]* %1, i64 0, i64 1, i64 32
store i32 0, i32* %9
%10 = getelementptr inbounds [2 x [33 x i32]], [2 x [33 x i32]]* %1, i64 0, i64 0, i64 32
store i32 0, i32* %10
%11 = getelementptr inbounds [2 x [33 x i32]], [2 x [33 x i32]]* %1, i64 0, i64 0, i64 0
%12 = getelementptr inbounds [2 x [33 x i32]], [2 x [33 x i32]]* %1, i64 0, i64 1, i64 0
%13 = call i32 @xorshift1024star_32(i32* %11)
%14 = call i32 @xorshift1024star_32(i32* %12)
%15 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %13, i32 %14)
%16 = call i32 @xorshift1024star_32(i32* %11)
%17 = call i32 @xorshift1024star_32(i32* %12)
%18 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %16, i32 %17)
%19 = call i32 @xorshift1024star_32(i32* %11)
%20 = call i32 @xorshift1024star_32(i32* %12)
%21 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %19, i32 %20)
%22 = call i32 @xorshift1024star_32(i32* %11)
%23 = call i32 @xorshift1024star_32(i32* %12)
%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 @xorshift1024star_32(i32* %11)
%26 = call i32 @xorshift1024star_32(i32* %12)
%27 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %25, i32 %26)
%28 = call i32 @xorshift1024star_32(i32* %11)
%29 = call i32 @xorshift1024star_32(i32* %12)
%30 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %28, i32 %29)
%31 = call i32 @xorshift1024star_32(i32* %11)
%32 = call i32 @xorshift1024star_32(i32* %12)
%33 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %31, i32 %32)
%34 = call i32 @xorshift1024star_32(i32* %11)
%35 = call i32 @xorshift1024star_32(i32* %12)
%36 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %34, i32 %35)
%37 = call i32 @xorshift1024star_32(i32* %11)
%38 = call i32 @xorshift1024star_32(i32* %12)
%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 @xorshift1024star_32(i32* %11)
%41 = call i32 @xorshift1024star_32(i32* %12)
%42 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %40, i32 %41)
ret i32 0
43: ; preds = %0, %43
%44 = phi i64 [ 0, %0 ], [ %49, %43 ]
%45 = call i32 @splitmix32(i32* %6)
%46 = getelementptr inbounds [2 x [33 x i32]], [2 x [33 x i32]]* %1, i64 0, i64 0, i64 %44
store i32 %45, i32* %46
%47 = call i32 @splitmix32(i32* %7)
%48 = getelementptr inbounds [2 x [33 x i32]], [2 x [33 x i32]]* %1, i64 0, i64 1, i64 %44
store i32 %47, i32* %48
%49 = add nuw nsw i64 %44, 1
%50 = icmp eq i64 %49, 32
br i1 %50, label %8, label %43
}