#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*/ convert_uint32_float(int *, float *);
int /*<<< orphan*/ printf(char *, ...);
int rand();
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int strtoll(char *, int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main(int argc, char *argv[]) {
  uint32_t v_in[4];
  float v_out[4];
  int i;
  srand(time(NULL));
  for (i = 1; i <= 4; i++) {
    if (i < argc)
      v_in[i - 1] = strtoll(argv[i], NULL, 0);
    else
      v_in[i - 1] = rand();
  }
  convert_uint32_float(v_in, v_out);
  printf("uint32_t[4] = {");
  for (unsigned i = 0; i < 4; i++) {
    if (i > 0) {
      printf(", ");
    }
    printf("%u", v_in[i]);
  }
  printf("}\n");
  printf("float[4] = {");
  for (unsigned i = 0; i < 4; i++) {
    if (i > 0) {
      printf(", ");
    }
    printf("%0.3f", v_out[i]);
  }
  printf("}\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1070 <time@plt>
mov    %eax,%edi
call   1050 <srand@plt>
movl   $0x1,-0x34(%rbp)
cmpl   $0x4,-0x34(%rbp)
jg     11f5 <main+0x95>
mov    -0x34(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11cd <main+0x6d>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   1060 <strtoll@plt>
mov    %eax,%ecx
mov    -0x34(%rbp),%eax
sub    $0x1,%eax
cltq
mov    %ecx,-0x20(%rbp,%rax,4)
jmp    11e2 <main+0x82>
mov    $0x0,%al
call   1080 <rand@plt>
mov    %eax,%ecx
mov    -0x34(%rbp),%eax
sub    $0x1,%eax
cltq
mov    %ecx,-0x20(%rbp,%rax,4)
jmp    11e7 <main+0x87>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    118d <main+0x2d>
lea    -0x20(%rbp),%rdi
lea    -0x30(%rbp),%rsi
call   1030 <convert_uint32_float@plt>
lea    0xdf7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x38(%rbp)
cmpl   $0x4,-0x38(%rbp)
jae    125c <main+0xfc>
cmpl   $0x0,-0x38(%rbp)
jbe    1239 <main+0xd9>
lea    0xdde(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%eax
mov    -0x20(%rbp,%rax,4),%esi
lea    0xdcc(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1217 <main+0xb7>
lea    0xdb3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xda8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x3c(%rbp)
cmpl   $0x4,-0x3c(%rbp)
jae    12ca <main+0x16a>
cmpl   $0x0,-0x3c(%rbp)
jbe    12a1 <main+0x141>
lea    0xd76(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x3c(%rbp),%eax
movss  -0x30(%rbp,%rax,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd71(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    127f <main+0x11f>
lea    0xd45(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x20,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
xor    %edi,%edi
call   1080 <time@plt>
mov    %eax,%edi
call   1060 <srand@plt>
cmp    $0x1,%ebp
jle    11e0 <main+0x70>
mov    0x8(%rbx),%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1070 <strtoll@plt>
mov    %eax,(%rsp)
cmp    $0x2,%ebp
je     11ea <main+0x7a>
mov    0x10(%rbx),%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1070 <strtoll@plt>
mov    %eax,0x4(%rsp)
cmp    $0x3,%ebp
jbe    11f5 <main+0x85>
mov    0x18(%rbx),%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1070 <strtoll@plt>
mov    %eax,0x8(%rsp)
cmp    $0x4,%ebp
je     1200 <main+0x90>
mov    0x20(%rbx),%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1070 <strtoll@plt>
jmp    1207 <main+0x97>
xor    %eax,%eax
call   1090 <rand@plt>
mov    %eax,(%rsp)
xor    %eax,%eax
call   1090 <rand@plt>
mov    %eax,0x4(%rsp)
xor    %eax,%eax
call   1090 <rand@plt>
mov    %eax,0x8(%rsp)
xor    %eax,%eax
call   1090 <rand@plt>
mov    %eax,0xc(%rsp)
mov    %rsp,%rdi
lea    0x10(%rsp),%rsi
call   1040 <convert_uint32_float@plt>
lea    0xde1(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%rsp),%esi
lea    0xde3(%rip),%rbp
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xdcf(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0xc(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd99(%rip),%r14
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xd77(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd6c(%rip),%rbp
mov    %rbp,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movss  0x14(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movss  0x18(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movss  0x1c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [16 x i8] c"uint32_t[4] = {\00"
@.str.1 = [3 x i8] c", \00"
@.str.2 = [3 x i8] c"%u\00"
@.str.3 = [3 x i8] c"}\0A\00"
@.str.4 = [13 x i8] c"float[4] = {\00"
@.str.5 = [6 x i8] c"%0.3f\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [4 x i32]
%7 = alloca [4 x float]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%11 = call i32 @time(i32* null)
%12 = call i32 @srand(i32 %11)
store i32 1, i32* %8
br label %13
13: ; preds = %38, %2
%14 = load i32, i32* %8
%15 = icmp sle i32 %14, 4
br i1 %15, label %16, label %41
16: ; preds = %13
%17 = load i32, i32* %8
%18 = load i32, i32* %4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %31
20: ; preds = %16
%21 = load i8**, i8*** %5
%22 = load i32, i32* %8
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8*, i8** %21, i64 %23
%25 = load i8*, i8** %24
%26 = call i32 @strtoll(i8* %25, i32* null, i32 0)
%27 = load i32, i32* %8
%28 = sub nsw i32 %27, 1
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 %29
store i32 %26, i32* %30
br label %37
31: ; preds = %16
%32 = call i32 (...) @rand()
%33 = load i32, i32* %8
%34 = sub nsw i32 %33, 1
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 %35
store i32 %32, i32* %36
br label %37
37: ; preds = %31, %20
br label %38
38: ; preds = %37
%39 = load i32, i32* %8
%40 = add nsw i32 %39, 1
store i32 %40, i32* %8
br label %13
41: ; preds = %13
%42 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
%43 = getelementptr inbounds [4 x float], [4 x float]* %7, i64 0, i64 0
%44 = call i32 @convert_uint32_float(i32* %42, float* %43)
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %9
br label %46
46: ; preds = %60, %41
%47 = load i32, i32* %9
%48 = icmp ult i32 %47, 4
br i1 %48, label %49, label %63
49: ; preds = %46
%50 = load i32, i32* %9
%51 = icmp ugt i32 %50, 0
br i1 %51, label %52, label %54
52: ; preds = %49
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %54
54: ; preds = %52, %49
%55 = load i32, i32* %9
%56 = zext i32 %55 to i64
%57 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 %56
%58 = load i32, i32* %57
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %58)
br label %60
60: ; preds = %54
%61 = load i32, i32* %9
%62 = add i32 %61, 1
store i32 %62, i32* %9
br label %46
63: ; preds = %46
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %10
br label %66
66: ; preds = %81, %63
%67 = load i32, i32* %10
%68 = icmp ult i32 %67, 4
br i1 %68, label %69, label %84
69: ; preds = %66
%70 = load i32, i32* %10
%71 = icmp ugt i32 %70, 0
br i1 %71, label %72, label %74
72: ; preds = %69
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %74
74: ; preds = %72, %69
%75 = load i32, i32* %10
%76 = zext i32 %75 to i64
%77 = getelementptr inbounds [4 x float], [4 x float]* %7, i64 0, i64 %76
%78 = load float, float* %77
%79 = fpext float %78 to double
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %79)
br label %81
81: ; preds = %74
%82 = load i32, i32* %10
%83 = add i32 %82, 1
store i32 %83, i32* %10
br label %66
84: ; preds = %66
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [16 x i8] c"uint32_t[4] = {\00"
@.str.1 = [3 x i8] c", \00"
@.str.2 = [3 x i8] c"%u\00"
@.str.4 = [13 x i8] c"float[4] = {\00"
@.str.5 = [6 x i8] c"%0.3f\00"
@str.6 = [2 x i8] c"}\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [4 x i32]
%4 = alloca [4 x float]
%5 = bitcast [4 x i32]* %3 to i8*
%6 = bitcast [4 x float]* %4 to i8*
%7 = tail call i32 @time(i32* null)
%8 = tail call i32 @srand(i32 %7)
%9 = icmp sgt i32 %0, 1
br i1 %9, label %13, label %10
10: ; preds = %2
%11 = tail call i32 (...) @rand()
%12 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 0
store i32 %11, i32* %12
br label %19
13: ; preds = %2
%14 = getelementptr inbounds i8*, i8** %1, i64 1
%15 = load i8*, i8** %14
%16 = tail call i32 @strtoll(i8* nocapture %15, i32* null, i32 0)
%17 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 0
store i32 %16, i32* %17
%18 = icmp eq i32 %0, 2
br i1 %18, label %19, label %22
19: ; preds = %13, %10
%20 = tail call i32 (...) @rand()
%21 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 1
store i32 %20, i32* %21
br label %28
22: ; preds = %13
%23 = getelementptr inbounds i8*, i8** %1, i64 2
%24 = load i8*, i8** %23
%25 = tail call i32 @strtoll(i8* nocapture %24, i32* null, i32 0)
%26 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 1
store i32 %25, i32* %26
%27 = icmp ugt i32 %0, 3
br i1 %27, label %32, label %28
28: ; preds = %22, %19
%29 = phi i32* [ %21, %19 ], [ %26, %22 ]
%30 = tail call i32 (...) @rand()
%31 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 2
store i32 %30, i32* %31
br label %38
32: ; preds = %22
%33 = getelementptr inbounds i8*, i8** %1, i64 3
%34 = load i8*, i8** %33
%35 = tail call i32 @strtoll(i8* nocapture %34, i32* null, i32 0)
%36 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 2
store i32 %35, i32* %36
%37 = icmp eq i32 %0, 4
br i1 %37, label %38, label %42
38: ; preds = %28, %32
%39 = phi i32* [ %31, %28 ], [ %36, %32 ]
%40 = phi i32* [ %29, %28 ], [ %26, %32 ]
%41 = tail call i32 (...) @rand()
br label %46
42: ; preds = %32
%43 = getelementptr inbounds i8*, i8** %1, i64 4
%44 = load i8*, i8** %43
%45 = tail call i32 @strtoll(i8* nocapture %44, i32* null, i32 0)
br label %46
46: ; preds = %42, %38
%47 = phi i32* [ %36, %42 ], [ %39, %38 ]
%48 = phi i32* [ %26, %42 ], [ %40, %38 ]
%49 = phi i32 [ %45, %42 ], [ %41, %38 ]
%50 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 0
%51 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 3
store i32 %49, i32* %51
%52 = getelementptr inbounds [4 x float], [4 x float]* %4, i64 0, i64 0
%53 = call i32 @convert_uint32_float(i32* %50, float* %52)
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%55 = load i32, i32* %50
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %55)
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%58 = load i32, i32* %48
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %58)
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%61 = load i32, i32* %47
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %61)
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%64 = load i32, i32* %51
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %64)
%66 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.6, i64 0, i64 0))
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%68 = load float, float* %52
%69 = fpext float %68 to double
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %69)
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%72 = getelementptr inbounds [4 x float], [4 x float]* %4, i64 0, i64 1
%73 = load float, float* %72
%74 = fpext float %73 to double
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %74)
%76 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%77 = getelementptr inbounds [4 x float], [4 x float]* %4, i64 0, i64 2
%78 = load float, float* %77
%79 = fpext float %78 to double
%80 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %79)
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%82 = getelementptr inbounds [4 x float], [4 x float]* %4, i64 0, i64 3
%83 = load float, float* %82
%84 = fpext float %83 to double
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %84)
%86 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.6, i64 0, i64 0))
ret i32 0
}