#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 cl_uint;

/* Variables and functions */
int /*<<< orphan*/ __rnd_mother(int *);
void __rnd_mother_init2(cl_uint *state, cl_uint seed) {
  cl_uint s = seed;
  int i;
  for (i = 0; i < 5; i++) {
    s = (1812433253UL * (s ^ (s >> 30)) + i);
    state[i] = s;
  }
  for (i = 0; i < 19; i++)
    __rnd_mother(state);
}


x86 assembly (clang, -O0):
<__rnd_mother_init2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x5,-0x14(%rbp)
jge    1170 <__rnd_mother_init2+0x60>
mov    -0x10(%rbp),%eax
mov    -0x10(%rbp),%ecx
sar    $0x1e,%ecx
xor    %ecx,%eax
cltq
imul   $0x6c078965,%rax,%rax
movslq -0x14(%rbp),%rcx
add    %rcx,%rax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%edx
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    112c <__rnd_mother_init2+0x1c>
movl   $0x0,-0x14(%rbp)
cmpl   $0x13,-0x14(%rbp)
jge    1198 <__rnd_mother_init2+0x88>
mov    -0x8(%rbp),%rdi
call   1030 <__rnd_mother@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1177 <__rnd_mother_init2+0x67>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__rnd_mother_init2>:
push   %rbx
mov    %rdi,%rbx
mov    %esi,%eax
sar    $0x1e,%eax
xor    %esi,%eax
imul   $0x6c078965,%eax,%eax
mov    %eax,(%rdi)
mov    %eax,%ecx
sar    $0x1e,%ecx
xor    %eax,%ecx
imul   $0x6c078965,%ecx,%eax
add    $0x1,%eax
mov    %eax,0x4(%rdi)
mov    %eax,%ecx
sar    $0x1e,%ecx
xor    %eax,%ecx
imul   $0x6c078965,%ecx,%eax
add    $0x2,%eax
mov    %eax,0x8(%rdi)
mov    %eax,%ecx
sar    $0x1e,%ecx
xor    %eax,%ecx
imul   $0x6c078965,%ecx,%eax
add    $0x3,%eax
mov    %eax,0xc(%rdi)
mov    %eax,%ecx
sar    $0x1e,%ecx
xor    %eax,%ecx
imul   $0x6c078965,%ecx,%eax
add    $0x4,%eax
mov    %eax,0x10(%rdi)
call   1030 <__rnd_mother@plt>
mov    %rbx,%rdi
call   1030 <__rnd_mother@plt>
mov    %rbx,%rdi
call   1030 <__rnd_mother@plt>
mov    %rbx,%rdi
call   1030 <__rnd_mother@plt>
mov    %rbx,%rdi
call   1030 <__rnd_mother@plt>
mov    %rbx,%rdi
call   1030 <__rnd_mother@plt>
mov    %rbx,%rdi
call   1030 <__rnd_mother@plt>
mov    %rbx,%rdi
call   1030 <__rnd_mother@plt>
mov    %rbx,%rdi
call   1030 <__rnd_mother@plt>
mov    %rbx,%rdi
call   1030 <__rnd_mother@plt>
mov    %rbx,%rdi
call   1030 <__rnd_mother@plt>
mov    %rbx,%rdi
call   1030 <__rnd_mother@plt>
mov    %rbx,%rdi
call   1030 <__rnd_mother@plt>
mov    %rbx,%rdi
call   1030 <__rnd_mother@plt>
mov    %rbx,%rdi
call   1030 <__rnd_mother@plt>
mov    %rbx,%rdi
call   1030 <__rnd_mother@plt>
mov    %rbx,%rdi
call   1030 <__rnd_mother@plt>
mov    %rbx,%rdi
call   1030 <__rnd_mother@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <__rnd_mother@plt>

LLVM IR (-O0):
define void @__rnd_mother_init2(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
%7 = load i32, i32* %4
store i32 %7, i32* %5
store i32 0, i32* %6
br label %8
8: ; preds = %27, %2
%9 = load i32, i32* %6
%10 = icmp slt i32 %9, 5
br i1 %10, label %11, label %30
11: ; preds = %8
%12 = load i32, i32* %5
%13 = load i32, i32* %5
%14 = ashr i32 %13, 30
%15 = xor i32 %12, %14
%16 = sext i32 %15 to i64
%17 = mul i64 1812433253, %16
%18 = load i32, i32* %6
%19 = sext i32 %18 to i64
%20 = add i64 %17, %19
%21 = trunc i64 %20 to i32
store i32 %21, i32* %5
%22 = load i32, i32* %5
%23 = load i32*, i32** %3
%24 = load i32, i32* %6
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, i32* %23, i64 %25
store i32 %22, i32* %26
br label %27
27: ; preds = %11
%28 = load i32, i32* %6
%29 = add nsw i32 %28, 1
store i32 %29, i32* %6
br label %8
30: ; preds = %8
store i32 0, i32* %6
br label %31
31: ; preds = %37, %30
%32 = load i32, i32* %6
%33 = icmp slt i32 %32, 19
br i1 %33, label %34, label %40
34: ; preds = %31
%35 = load i32*, i32** %3
%36 = call i32 @__rnd_mother(i32* %35)
br label %37
37: ; preds = %34
%38 = load i32, i32* %6
%39 = add nsw i32 %38, 1
store i32 %39, i32* %6
br label %31
40: ; preds = %31
ret void
}

LLVM IR (-O2):
define void @__rnd_mother_init2(i32* %0, i32 %1) {
%3 = ashr i32 %1, 30
%4 = xor i32 %3, %1
%5 = mul i32 %4, 1812433253
store i32 %5, i32* %0
%6 = ashr i32 %5, 30
%7 = xor i32 %6, %5
%8 = mul i32 %7, 1812433253
%9 = add i32 %8, 1
%10 = getelementptr inbounds i32, i32* %0, i64 1
store i32 %9, i32* %10
%11 = ashr i32 %9, 30
%12 = xor i32 %11, %9
%13 = mul i32 %12, 1812433253
%14 = add i32 %13, 2
%15 = getelementptr inbounds i32, i32* %0, i64 2
store i32 %14, i32* %15
%16 = ashr i32 %14, 30
%17 = xor i32 %16, %14
%18 = mul i32 %17, 1812433253
%19 = add i32 %18, 3
%20 = getelementptr inbounds i32, i32* %0, i64 3
store i32 %19, i32* %20
%21 = ashr i32 %19, 30
%22 = xor i32 %21, %19
%23 = mul i32 %22, 1812433253
%24 = add i32 %23, 4
%25 = getelementptr inbounds i32, i32* %0, i64 4
store i32 %24, i32* %25
%26 = tail call i32 @__rnd_mother(i32* %0)
%27 = tail call i32 @__rnd_mother(i32* %0)
%28 = tail call i32 @__rnd_mother(i32* %0)
%29 = tail call i32 @__rnd_mother(i32* %0)
%30 = tail call i32 @__rnd_mother(i32* %0)
%31 = tail call i32 @__rnd_mother(i32* %0)
%32 = tail call i32 @__rnd_mother(i32* %0)
%33 = tail call i32 @__rnd_mother(i32* %0)
%34 = tail call i32 @__rnd_mother(i32* %0)
%35 = tail call i32 @__rnd_mother(i32* %0)
%36 = tail call i32 @__rnd_mother(i32* %0)
%37 = tail call i32 @__rnd_mother(i32* %0)
%38 = tail call i32 @__rnd_mother(i32* %0)
%39 = tail call i32 @__rnd_mother(i32* %0)
%40 = tail call i32 @__rnd_mother(i32* %0)
%41 = tail call i32 @__rnd_mother(i32* %0)
%42 = tail call i32 @__rnd_mother(i32* %0)
%43 = tail call i32 @__rnd_mother(i32* %0)
%44 = tail call i32 @__rnd_mother(i32* %0)
ret void
}