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


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0xc(%rbp)
movl   $0x2,-0x8(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0xa,-0x10(%rbp)
jge    1186 <main+0x66>
lea    -0xc(%rbp),%rdi
call   1040 <splitmix32@plt>
mov    %eax,-0x14(%rbp)
lea    -0xc(%rbp),%rdi
add    $0x4,%rdi
call   1040 <splitmix32@plt>
mov    -0x14(%rbp),%esi
mov    %eax,%edx
lea    0xe8d(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1144 <main+0x24>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
movabs $0x200000001,%rax
mov    %rax,(%rsp)
lea    0x4(%rsp),%r14
mov    %rsp,%r15
mov    %r15,%rdi
call   1040 <splitmix32@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1040 <splitmix32@plt>
lea    0xeaa(%rip),%rbx
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1040 <splitmix32@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1040 <splitmix32@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1040 <splitmix32@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1040 <splitmix32@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1040 <splitmix32@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1040 <splitmix32@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1040 <splitmix32@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1040 <splitmix32@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1040 <splitmix32@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1040 <splitmix32@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1040 <splitmix32@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1040 <splitmix32@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1040 <splitmix32@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1040 <splitmix32@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1040 <splitmix32@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1040 <splitmix32@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %r15,%rdi
call   1040 <splitmix32@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1040 <splitmix32@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"%10u %10u\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [2 x i32]
%3 = alloca i32
store i32 0, i32* %1
%4 = getelementptr inbounds [2 x i32], [2 x i32]* %2, i64 0, i64 0
store i32 1, i32* %4
%5 = getelementptr inbounds [2 x i32], [2 x i32]* %2, i64 0, i64 1
store i32 2, i32* %5
store i32 0, i32* %3
br label %6
6: ; preds = %15, %0
%7 = load i32, i32* %3
%8 = icmp slt i32 %7, 10
br i1 %8, label %9, label %18
9: ; preds = %6
%10 = getelementptr inbounds [2 x i32], [2 x i32]* %2, i64 0, i64 0
%11 = call i32 @splitmix32(i32* %10)
%12 = getelementptr inbounds [2 x i32], [2 x i32]* %2, i64 0, i64 1
%13 = call i32 @splitmix32(i32* %12)
%14 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %11, i32 %13)
br label %15
15: ; preds = %9
%16 = load i32, i32* %3
%17 = add nsw i32 %16, 1
store i32 %17, i32* %3
br label %6
18: ; preds = %6
%19 = load i32, i32* %1
ret i32 %19
}

LLVM IR (-O2):
@.str = [11 x i8] c"%10u %10u\0A\00"
define i32 @main() {
%1 = alloca [2 x i32]
%2 = bitcast [2 x i32]* %1 to i8*
%3 = getelementptr inbounds [2 x i32], [2 x i32]* %1, i64 0, i64 0
store i32 1, i32* %3
%4 = getelementptr inbounds [2 x i32], [2 x i32]* %1, i64 0, i64 1
store i32 2, i32* %4
%5 = call i32 @splitmix32(i32* %3)
%6 = call i32 @splitmix32(i32* %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 @splitmix32(i32* %3)
%9 = call i32 @splitmix32(i32* %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 @splitmix32(i32* %3)
%12 = call i32 @splitmix32(i32* %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 @splitmix32(i32* %3)
%15 = call i32 @splitmix32(i32* %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 @splitmix32(i32* %3)
%18 = call i32 @splitmix32(i32* %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 @splitmix32(i32* %3)
%21 = call i32 @splitmix32(i32* %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 @splitmix32(i32* %3)
%24 = call i32 @splitmix32(i32* %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 @splitmix32(i32* %3)
%27 = call i32 @splitmix32(i32* %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 @splitmix32(i32* %3)
%30 = call i32 @splitmix32(i32* %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 @splitmix32(i32* %3)
%33 = call i32 @splitmix32(i32* %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
}