#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 */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, float, ...);
int /*<<< orphan*/ psdes_hash_64(unsigned int *, unsigned int *);
float fran32_print(int *pidum) {
  unsigned irword, itemp, lword;
  static int idums = 0;
  static unsigned jflone = 0x3f800000;
  static unsigned jflmask = 0x007fffff;
  float fret;
  if (*pidum < 0) {
    idums = -(*pidum);
    *pidum = 1;
  }
  irword = *pidum;
  lword = idums;
  printf("0x%08x 0x%08x ", lword, irword);
  psdes_hash_64(&lword, &irword);
  printf(" 0x%08x 0x%08x  ", lword, irword);
  ++(*pidum);
  itemp = jflone | (jflmask & irword);
  fret = (*(float *)&itemp) - 1.0;
  printf("%9.6f\n", fret);
  return fret;
}


x86 assembly (clang, -O0):
<fran32_print>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
cmpl   $0x0,(%rax)
jge    1151 <fran32_print+0x31>
mov    -0x8(%rbp),%rcx
xor    %eax,%eax
sub    (%rcx),%eax
mov    %eax,0x2ef5(%rip)
mov    -0x8(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0xc(%rbp)
mov    0x2edc(%rip),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cvtsi2ss %rax,%xmm0
mov    -0xc(%rbp),%esi
lea    0xe93(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    -0x14(%rbp),%rdi
lea    -0xc(%rbp),%rsi
call   1030 <psdes_hash_64@plt>
mov    -0x14(%rbp),%eax
cvtsi2ss %rax,%xmm0
mov    -0xc(%rbp),%esi
lea    0xe7c(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    %ecx,(%rax)
mov    0x2e7d(%rip),%eax
mov    0x2e7b(%rip),%ecx
and    -0xc(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe2e(%rip),%xmm1
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x18(%rbp),%xmm0
lea    0xe3d(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  -0x18(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fran32_print>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
mov    (%rdi),%esi
test   %esi,%esi
js     1136 <fran32_print+0x16>
mov    0x2f00(%rip),%eax
jmp    114b <fran32_print+0x2b>
neg    %esi
mov    %esi,0x2ef6(%rip)
movl   $0x1,(%rbx)
mov    %esi,%eax
mov    $0x1,%esi
mov    %esi,0x4(%rsp)
mov    %eax,0x8(%rsp)
mov    %eax,%eax
cvtsi2ss %rax,%xmm0
lea    0xea3(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0x8(%rsp),%rdi
lea    0x4(%rsp),%rsi
call   1030 <psdes_hash_64@plt>
mov    0x8(%rsp),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
mov    0x4(%rsp),%esi
lea    0xe85(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
addl   $0x1,(%rbx)
mov    $0x7fffff,%eax
and    0x4(%rsp),%eax
or     $0x3f800000,%eax
movd   %eax,%xmm0
addss  0xe4e(%rip),%xmm0
movss  %xmm0,0xc(%rsp)
lea    0xe65(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0xc(%rsp),%xmm0
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@fran32_print.idums = internal global i32 0
@fran32_print.jflone = internal global i32 1065353216
@fran32_print.jflmask = internal global i32 8388607
@.str = [15 x i8] c"0x%08x 0x%08x \00"
@.str.1 = [17 x i8] c" 0x%08x 0x%08x \00"
@.str.2 = [7 x i8] c"%9.6f\0A\00"
define float @fran32_print(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca float
store i32* %0, i32** %2
%7 = load i32*, i32** %2
%8 = load i32, i32* %7
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %15
10: ; preds = %1
%11 = load i32*, i32** %2
%12 = load i32, i32* %11
%13 = sub nsw i32 0, %12
store i32 %13, i32* @fran32_print.idums
%14 = load i32*, i32** %2
store i32 1, i32* %14
br label %15
15: ; preds = %10, %1
%16 = load i32*, i32** %2
%17 = load i32, i32* %16
store i32 %17, i32* %3
%18 = load i32, i32* @fran32_print.idums
store i32 %18, i32* %5
%19 = load i32, i32* %5
%20 = uitofp i32 %19 to float
%21 = load i32, i32* %3
%22 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), float %20, i32 %21)
%23 = call i32 @psdes_hash_64(i32* %5, i32* %3)
%24 = load i32, i32* %5
%25 = uitofp i32 %24 to float
%26 = load i32, i32* %3
%27 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), float %25, i32 %26)
%28 = load i32*, i32** %2
%29 = load i32, i32* %28
%30 = add nsw i32 %29, 1
store i32 %30, i32* %28
%31 = load i32, i32* @fran32_print.jflone
%32 = load i32, i32* @fran32_print.jflmask
%33 = load i32, i32* %3
%34 = and i32 %32, %33
%35 = or i32 %31, %34
store i32 %35, i32* %4
%36 = bitcast i32* %4 to float*
%37 = load float, float* %36
%38 = fpext float %37 to double
%39 = fsub double %38, 1.000000e+00
%40 = fptrunc double %39 to float
store float %40, float* %6
%41 = load float, float* %6
%42 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), float %41)
%43 = load float, float* %6
ret float %43
}

LLVM IR (-O2):
@fran32_print.idums = internal unnamed_addr global i32 0
@.str = [15 x i8] c"0x%08x 0x%08x \00"
@.str.1 = [17 x i8] c" 0x%08x 0x%08x \00"
@.str.2 = [7 x i8] c"%9.6f\0A\00"
define float @fran32_print(i32* nocapture %0) {
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %2 to i8*
%5 = bitcast i32* %3 to i8*
%6 = load i32, i32* %0
%7 = icmp slt i32 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %1
%9 = load i32, i32* @fran32_print.idums
br label %12
10: ; preds = %1
%11 = sub nsw i32 0, %6
store i32 %11, i32* @fran32_print.idums
store i32 1, i32* %0
br label %12
12: ; preds = %8, %10
%13 = phi i32 [ %11, %10 ], [ %9, %8 ]
%14 = phi i32 [ 1, %10 ], [ %6, %8 ]
store i32 %14, i32* %2
store i32 %13, i32* %3
%15 = uitofp i32 %13 to float
%16 = tail call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), float %15, i32 %14)
%17 = call i32 @psdes_hash_64(i32* %3, i32* %2)
%18 = load i32, i32* %3
%19 = uitofp i32 %18 to float
%20 = load i32, i32* %2
%21 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), float %19, i32 %20)
%22 = load i32, i32* %0
%23 = add nsw i32 %22, 1
store i32 %23, i32* %0
%24 = load i32, i32* %2
%25 = and i32 %24, 8388607
%26 = or i32 %25, 1065353216
%27 = bitcast i32 %26 to float
%28 = fadd float %27, -1.000000e+00
%29 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), float %28)
ret float %28
}