#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 */
float atof(char *);
int /*<<< orphan*/ print_usage(char **);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[]) {
  if (argc < 2) {
    print_usage(argv);
  }
  float f = atof(argv[1]);
  int mask = 0x1;
  for (int i = sizeof(float) * 8 - 1; i >= 0; i--) {
    printf("%d", ((*(int *)&f) >> i) & mask);
    if (i == 31 || i == 23) {
      printf(" ");
    }
  }
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    1159 <main+0x29>
mov    -0x10(%rbp),%rdi
call   1050 <print_usage@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1030 <atof@plt>
movss  %xmm0,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
movl   $0x1f,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jl     11d1 <main+0xa1>
mov    -0x14(%rbp),%esi
mov    -0x1c(%rbp),%ecx
sar    %cl,%esi
and    -0x18(%rbp),%esi
lea    0xe6b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x1f,-0x1c(%rbp)
je     11b0 <main+0x80>
cmpl   $0x17,-0x1c(%rbp)
jne    11be <main+0x8e>
lea    0xe4c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    11c3 <main+0x93>
mov    -0x1c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x1c(%rbp)
jmp    1179 <main+0x49>
lea    0xe2d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%rbx
cmp    $0x1,%edi
jg     1154 <main+0x14>
mov    %rbx,%rdi
call   1060 <print_usage@plt>
mov    0x8(%rbx),%rdi
call   1040 <atof@plt>
movd   %xmm0,%ebp
mov    $0x1f,%ebx
lea    0xe93(%rip),%r14
jmp    1175 <main+0x35>
nop
add    $0xffffffff,%ebx
jae    119e <main+0x5e>
mov    %ebp,%esi
mov    %ebx,%ecx
shr    %cl,%esi
and    $0x1,%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebx,%eax
and    $0xfffffff7,%eax
cmp    $0x17,%eax
jne    1170 <main+0x30>
mov    $0x20,%edi
call   1030 <putchar@plt>
jmp    1170 <main+0x30>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [2 x i8] c" \00"
@.str.2 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca float
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = load i32, i32* %4
%10 = icmp slt i32 %9, 2
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = load i8**, i8*** %5
%13 = call i32 @print_usage(i8** %12)
br label %14
14: ; preds = %11, %2
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 1
%17 = load i8*, i8** %16
%18 = call float @atof(i8* %17)
store float %18, float* %6
store i32 1, i32* %7
store i32 31, i32* %8
br label %19
19: ; preds = %38, %14
%20 = load i32, i32* %8
%21 = icmp sge i32 %20, 0
br i1 %21, label %22, label %41
22: ; preds = %19
%23 = bitcast float* %6 to i32*
%24 = load i32, i32* %23
%25 = load i32, i32* %8
%26 = ashr i32 %24, %25
%27 = load i32, i32* %7
%28 = and i32 %26, %27
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %28)
%30 = load i32, i32* %8
%31 = icmp eq i32 %30, 31
br i1 %31, label %35, label %32
32: ; preds = %22
%33 = load i32, i32* %8
%34 = icmp eq i32 %33, 23
br i1 %34, label %35, label %37
35: ; preds = %32, %22
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %37
37: ; preds = %35, %32
br label %38
38: ; preds = %37
%39 = load i32, i32* %8
%40 = add nsw i32 %39, -1
store i32 %40, i32* %8
br label %19
41: ; preds = %19
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define i32 @main(i32 %0, i8** %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = tail call i32 @print_usage(i8** %1)
br label %6
6: ; preds = %4, %2
%7 = getelementptr inbounds i8*, i8** %1, i64 1
%8 = load i8*, i8** %7
%9 = tail call float @atof(i8* %8)
%10 = bitcast float %9 to i32
br label %13
11: ; preds = %22
%12 = tail call i32 @putchar(i32 10)
ret i32 0
13: ; preds = %6, %22
%14 = phi i32 [ 31, %6 ], [ %23, %22 ]
%15 = lshr i32 %10, %14
%16 = and i32 %15, 1
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %16)
%18 = and i32 %14, -9
%19 = icmp eq i32 %18, 23
br i1 %19, label %20, label %22
20: ; preds = %13
%21 = tail call i32 @putchar(i32 32)
br label %22
22: ; preds = %20, %13
%23 = add nsw i32 %14, -1
%24 = icmp eq i32 %14, 0
br i1 %24, label %11, label %13
}