#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 /*<<< orphan*/ time_t;
struct tm {
  int /*<<< orphan*/ tm_sec;
};

/* Variables and functions */
struct tm *localtime(int /*<<< orphan*/ *);
int rand();
int /*<<< orphan*/ sprintf(char *, char *, int, int, int, int, int, int, int,
                           int, int, int, int, int, int, int, int, int, int,
                           int, int, int, int, int, int, int, int, int, int,
                           int, int, int, int, int);
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
void getUUID(char *id) {
  static int randInitialized = 0;
  if (!randInitialized) {
    time_t t = time(NULL);
    struct tm tm = *localtime(&t);
    srand(tm.tm_sec);
    randInitialized = 1;
  }
  sprintf(
      id,
      "%x%x%x%x%x%x%x%x-%x%x%x%x-%x%x%x%x-%x%x%x%x-%x%x%x%x%x%x%x%x%x%x%x%x",
      rand() % 16, rand() % 16, rand() % 16, rand() % 16, rand() % 16,
      rand() % 16, rand() % 16, rand() % 16, rand() % 16, rand() % 16,
      rand() % 16, rand() % 16, rand() % 16, rand() % 16, rand() % 16,
      rand() % 16, rand() % 16, rand() % 16, rand() % 16, rand() % 16,
      rand() % 16, rand() % 16, rand() % 16, rand() % 16, rand() % 16,
      rand() % 16, rand() % 16, rand() % 16, rand() % 16, rand() % 16,
      rand() % 16, rand() % 16);
}


x86 assembly (clang, -O0):
<getUUID>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x168,%rsp
mov    %rdi,-0x30(%rbp)
cmpl   $0x0,0x2edd(%rip)
jne    11a1 <getUUID+0x51>
xor    %eax,%eax
mov    %eax,%edi
call   1050 <time@plt>
mov    %eax,-0x34(%rbp)
lea    -0x34(%rbp),%rdi
call   1030 <localtime@plt>
mov    (%rax),%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%edi
call   1040 <srand@plt>
movl   $0x1,0x2eab(%rip)
mov    -0x30(%rbp),%rax
mov    %rax,-0xb0(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0x8c(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0xa4(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0xa0(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0x9c(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0x90(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0x88(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0x84(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0x80(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0x7c(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0x78(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0x74(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0x70(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0x6c(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0x68(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0x64(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0x60(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0x5c(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0x58(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0x54(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0x50(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0x4c(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0x48(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0x44(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0x40(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,%r13d
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,%r12d
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,%r15d
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,%r14d
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,%ebx
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0x98(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0x94(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    -0xb0(%rbp),%rdi
mov    -0xa4(%rbp),%ecx
mov    -0xa0(%rbp),%r8d
mov    -0x9c(%rbp),%r9d
mov    -0x98(%rbp),%r11d
mov    -0x94(%rbp),%r10d
mov    $0x10,%esi
cltd
idiv   %esi
mov    -0x90(%rbp),%eax
mov    %edx,%esi
mov    -0x8c(%rbp),%edx
mov    %esi,-0x3c(%rbp)
lea    0xbbc(%rip),%rsi
mov    %eax,(%rsp)
mov    -0x88(%rbp),%eax
mov    %eax,0x8(%rsp)
mov    -0x84(%rbp),%eax
mov    %eax,0x10(%rsp)
mov    -0x80(%rbp),%eax
mov    %eax,0x18(%rsp)
mov    -0x7c(%rbp),%eax
mov    %eax,0x20(%rsp)
mov    -0x78(%rbp),%eax
mov    %eax,0x28(%rsp)
mov    -0x74(%rbp),%eax
mov    %eax,0x30(%rsp)
mov    -0x70(%rbp),%eax
mov    %eax,0x38(%rsp)
mov    -0x6c(%rbp),%eax
mov    %eax,0x40(%rsp)
mov    -0x68(%rbp),%eax
mov    %eax,0x48(%rsp)
mov    -0x64(%rbp),%eax
mov    %eax,0x50(%rsp)
mov    -0x60(%rbp),%eax
mov    %eax,0x58(%rsp)
mov    -0x5c(%rbp),%eax
mov    %eax,0x60(%rsp)
mov    -0x58(%rbp),%eax
mov    %eax,0x68(%rsp)
mov    -0x54(%rbp),%eax
mov    %eax,0x70(%rsp)
mov    -0x50(%rbp),%eax
mov    %eax,0x78(%rsp)
mov    -0x4c(%rbp),%eax
mov    %eax,0x80(%rsp)
mov    -0x48(%rbp),%eax
mov    %eax,0x88(%rsp)
mov    -0x44(%rbp),%eax
mov    %eax,0x90(%rsp)
mov    -0x40(%rbp),%eax
mov    %eax,0x98(%rsp)
mov    -0x3c(%rbp),%eax
mov    %r13d,0xa0(%rsp)
mov    %r12d,0xa8(%rsp)
mov    %r15d,0xb0(%rsp)
mov    %r14d,0xb8(%rsp)
mov    %ebx,0xc0(%rsp)
mov    %r11d,0xc8(%rsp)
mov    %r10d,0xd0(%rsp)
mov    %eax,0xd8(%rsp)
call   1060 <sprintf@plt>
add    $0x168,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<getUUID>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
mov    %rdi,0xd0(%rsp)
cmpb   $0x0,0x2edc(%rip)
jne    1195 <getUUID+0x45>
xor    %edi,%edi
call   1050 <time@plt>
mov    %eax,0x4(%rsp)
lea    0x4(%rsp),%rdi
call   1030 <localtime@plt>
mov    (%rax),%edi
call   1040 <srand@plt>
movb   $0x1,0x2eb7(%rip)
xor    %eax,%eax
call   1070 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
mov    %rax,0xb8(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
mov    %rax,0xa8(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
mov    %rax,0x98(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
mov    %rax,0x88(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
mov    %rax,0xc8(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
mov    %rax,0xc0(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
mov    %rax,0xb0(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
mov    %rax,0xa0(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
mov    %rax,0x90(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
mov    %rax,0x80(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
mov    %rax,0x78(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
mov    %rax,0x70(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
mov    %rax,0x68(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
mov    %rax,0x60(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
mov    %rax,0x58(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
mov    %rax,0x50(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
mov    %rax,0x48(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
mov    %rax,0x40(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
mov    %rax,0x38(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
mov    %rax,0x30(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
mov    %rax,0x28(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
mov    %rax,0x20(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
mov    %rax,0x18(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
mov    %rax,0x10(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
mov    %rax,0x8(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
mov    %eax,%r12d
lea    0xf(%r12),%eax
test   %r12d,%r12d
cmovns %r12d,%eax
and    $0xfffffff0,%eax
sub    %eax,%r12d
xor    %eax,%eax
call   1070 <rand@plt>
mov    %eax,%r13d
lea    0xf(%r13),%eax
test   %r13d,%r13d
cmovns %r13d,%eax
and    $0xfffffff0,%eax
sub    %eax,%r13d
xor    %eax,%eax
call   1070 <rand@plt>
mov    %eax,%ebx
lea    0xf(%rbx),%eax
test   %ebx,%ebx
cmovns %ebx,%eax
and    $0xfffffff0,%eax
sub    %eax,%ebx
xor    %eax,%eax
call   1070 <rand@plt>
mov    %eax,%ebp
lea    0xf(%rbp),%eax
test   %ebp,%ebp
cmovns %ebp,%eax
and    $0xfffffff0,%eax
sub    %eax,%ebp
xor    %eax,%eax
call   1070 <rand@plt>
mov    %eax,%r14d
lea    0xf(%r14),%eax
test   %r14d,%r14d
cmovns %r14d,%eax
and    $0xfffffff0,%eax
sub    %eax,%r14d
xor    %eax,%eax
call   1070 <rand@plt>
mov    %eax,%r15d
lea    0xf(%r15),%eax
test   %r15d,%r15d
cmovns %r15d,%eax
and    $0xfffffff0,%eax
sub    %eax,%r15d
xor    %eax,%eax
call   1070 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
lea    0xb28(%rip),%rsi
mov    0xd0(%rsp),%rdi
mov    0xb8(%rsp),%rdx
mov    0xa8(%rsp),%rcx
mov    0x98(%rsp),%r8
mov    0x88(%rsp),%r9
push   %rax
push   %r15
push   %r14
push   %rbp
push   %rbx
push   %r13
push   %r12
push   0x40(%rsp)
push   0x50(%rsp)
push   0x60(%rsp)
push   0x70(%rsp)
push   0x80(%rsp)
push   0x90(%rsp)
push   0xa0(%rsp)
push   0xb0(%rsp)
push   0xc0(%rsp)
push   0xd0(%rsp)
push   0xe0(%rsp)
push   0xf0(%rsp)
push   0x100(%rsp)
push   0x110(%rsp)
push   0x120(%rsp)
push   0x130(%rsp)
push   0x148(%rsp)
push   0x160(%rsp)
push   0x178(%rsp)
push   0x190(%rsp)
push   0x1a0(%rsp)
call   1060 <sprintf@plt>
add    $0x1b8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.tm = type { i32 }
@getUUID.randInitialized = internal global i32 0
@.str = [69 x i8] c"%x%x%x%x%x%x%x%x-%x%x%x%x-%x%x%x%x-%x%x%x%x-%x%x%x%x%x%x%x%x%x%x%x%x\00"
define void @getUUID(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca %struct.tm
store i8* %0, i8** %2
%5 = load i32, i32* @getUUID.randInitialized
%6 = icmp ne i32 %5, 0
br i1 %6, label %15, label %7
7: ; preds = %1
%8 = call i32 @time(i32* null)
store i32 %8, i32* %3
%9 = call %struct.tm* @localtime(i32* %3)
%10 = bitcast %struct.tm* %4 to i8*
%11 = bitcast %struct.tm* %9 to i8*
%12 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 0
%13 = load i32, i32* %12
%14 = call i32 @srand(i32 %13)
store i32 1, i32* @getUUID.randInitialized
br label %15
15: ; preds = %7, %1
%16 = load i8*, i8** %2
%17 = call i32 (...) @rand()
%18 = srem i32 %17, 16
%19 = call i32 (...) @rand()
%20 = srem i32 %19, 16
%21 = call i32 (...) @rand()
%22 = srem i32 %21, 16
%23 = call i32 (...) @rand()
%24 = srem i32 %23, 16
%25 = call i32 (...) @rand()
%26 = srem i32 %25, 16
%27 = call i32 (...) @rand()
%28 = srem i32 %27, 16
%29 = call i32 (...) @rand()
%30 = srem i32 %29, 16
%31 = call i32 (...) @rand()
%32 = srem i32 %31, 16
%33 = call i32 (...) @rand()
%34 = srem i32 %33, 16
%35 = call i32 (...) @rand()
%36 = srem i32 %35, 16
%37 = call i32 (...) @rand()
%38 = srem i32 %37, 16
%39 = call i32 (...) @rand()
%40 = srem i32 %39, 16
%41 = call i32 (...) @rand()
%42 = srem i32 %41, 16
%43 = call i32 (...) @rand()
%44 = srem i32 %43, 16
%45 = call i32 (...) @rand()
%46 = srem i32 %45, 16
%47 = call i32 (...) @rand()
%48 = srem i32 %47, 16
%49 = call i32 (...) @rand()
%50 = srem i32 %49, 16
%51 = call i32 (...) @rand()
%52 = srem i32 %51, 16
%53 = call i32 (...) @rand()
%54 = srem i32 %53, 16
%55 = call i32 (...) @rand()
%56 = srem i32 %55, 16
%57 = call i32 (...) @rand()
%58 = srem i32 %57, 16
%59 = call i32 (...) @rand()
%60 = srem i32 %59, 16
%61 = call i32 (...) @rand()
%62 = srem i32 %61, 16
%63 = call i32 (...) @rand()
%64 = srem i32 %63, 16
%65 = call i32 (...) @rand()
%66 = srem i32 %65, 16
%67 = call i32 (...) @rand()
%68 = srem i32 %67, 16
%69 = call i32 (...) @rand()
%70 = srem i32 %69, 16
%71 = call i32 (...) @rand()
%72 = srem i32 %71, 16
%73 = call i32 (...) @rand()
%74 = srem i32 %73, 16
%75 = call i32 (...) @rand()
%76 = srem i32 %75, 16
%77 = call i32 (...) @rand()
%78 = srem i32 %77, 16
%79 = call i32 (...) @rand()
%80 = srem i32 %79, 16
%81 = call i32 @sprintf(i8* %16, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0), i32 %18, i32 %20, i32 %22, i32 %24, i32 %26, i32 %28, i32 %30, i32 %32, i32 %34, i32 %36, i32 %38, i32 %40, i32 %42, i32 %44, i32 %46, i32 %48, i32 %50, i32 %52, i32 %54, i32 %56, i32 %58, i32 %60, i32 %62, i32 %64, i32 %66, i32 %68, i32 %70, i32 %72, i32 %74, i32 %76, i32 %78, i32 %80)
ret void
}

LLVM IR (-O2):
%struct.tm = type { i32 }
@getUUID.randInitialized = internal unnamed_addr global i1 false
@.str = [69 x i8] c"%x%x%x%x%x%x%x%x-%x%x%x%x-%x%x%x%x-%x%x%x%x-%x%x%x%x%x%x%x%x%x%x%x%x\00"
define void @getUUID(i8* nocapture writeonly %0) {
%2 = alloca i32
%3 = load i1, i1* @getUUID.randInitialized
br i1 %3, label %11, label %4
4: ; preds = %1
%5 = bitcast i32* %2 to i8*
%6 = tail call i32 @time(i32* null)
store i32 %6, i32* %2
%7 = call %struct.tm* @localtime(i32* %2)
%8 = getelementptr inbounds %struct.tm, %struct.tm* %7, i64 0, i32 0
%9 = load i32, i32* %8
%10 = call i32 @srand(i32 %9)
store i1 true, i1* @getUUID.randInitialized
br label %11
11: ; preds = %4, %1
%12 = call i32 (...) @rand()
%13 = srem i32 %12, 16
%14 = call i32 (...) @rand()
%15 = srem i32 %14, 16
%16 = call i32 (...) @rand()
%17 = srem i32 %16, 16
%18 = call i32 (...) @rand()
%19 = srem i32 %18, 16
%20 = call i32 (...) @rand()
%21 = srem i32 %20, 16
%22 = call i32 (...) @rand()
%23 = srem i32 %22, 16
%24 = call i32 (...) @rand()
%25 = srem i32 %24, 16
%26 = call i32 (...) @rand()
%27 = srem i32 %26, 16
%28 = call i32 (...) @rand()
%29 = srem i32 %28, 16
%30 = call i32 (...) @rand()
%31 = srem i32 %30, 16
%32 = call i32 (...) @rand()
%33 = srem i32 %32, 16
%34 = call i32 (...) @rand()
%35 = srem i32 %34, 16
%36 = call i32 (...) @rand()
%37 = srem i32 %36, 16
%38 = call i32 (...) @rand()
%39 = srem i32 %38, 16
%40 = call i32 (...) @rand()
%41 = srem i32 %40, 16
%42 = call i32 (...) @rand()
%43 = srem i32 %42, 16
%44 = call i32 (...) @rand()
%45 = srem i32 %44, 16
%46 = call i32 (...) @rand()
%47 = srem i32 %46, 16
%48 = call i32 (...) @rand()
%49 = srem i32 %48, 16
%50 = call i32 (...) @rand()
%51 = srem i32 %50, 16
%52 = call i32 (...) @rand()
%53 = srem i32 %52, 16
%54 = call i32 (...) @rand()
%55 = srem i32 %54, 16
%56 = call i32 (...) @rand()
%57 = srem i32 %56, 16
%58 = call i32 (...) @rand()
%59 = srem i32 %58, 16
%60 = call i32 (...) @rand()
%61 = srem i32 %60, 16
%62 = call i32 (...) @rand()
%63 = srem i32 %62, 16
%64 = call i32 (...) @rand()
%65 = srem i32 %64, 16
%66 = call i32 (...) @rand()
%67 = srem i32 %66, 16
%68 = call i32 (...) @rand()
%69 = srem i32 %68, 16
%70 = call i32 (...) @rand()
%71 = srem i32 %70, 16
%72 = call i32 (...) @rand()
%73 = srem i32 %72, 16
%74 = call i32 (...) @rand()
%75 = srem i32 %74, 16
%76 = call i32 @sprintf(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0), i32 %13, i32 %15, i32 %17, i32 %19, i32 %21, i32 %23, i32 %25, i32 %27, i32 %29, i32 %31, i32 %33, i32 %35, i32 %37, i32 %39, i32 %41, i32 %43, i32 %45, i32 %47, i32 %49, i32 %51, i32 %53, i32 %55, i32 %57, i32 %59, i32 %61, i32 %63, i32 %65, i32 %67, i32 %69, i32 %71, i32 %73, i32 %75)
ret void
}