#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*/ memcpy(unsigned long *, float *, int);
int /*<<< orphan*/ printf(char *, ...);
void main() {
  float data;
  unsigned long buff;
  int i;
  char s[34];
  data = (float)0.75;
  memcpy(&buff, &data, 4);
  for (i = 33; i >= 0; i--) {
    printf("%ld\n", buff % 2);
  }
  s[34] = '\0';
  printf("%s\n", s);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movss  0xed0(%rip),%xmm0
movss  %xmm0,-0x4(%rbp)
lea    -0x10(%rbp),%rdi
lea    -0x4(%rbp),%rsi
mov    $0x4,%edx
call   1040 <memcpy@plt>
movl   $0x21,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jl     117c <main+0x5c>
mov    -0x10(%rbp),%rsi
and    $0x1,%rsi
lea    0xe9d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
jmp    114e <main+0x2e>
movb   $0x0,-0x1e(%rbp)
lea    -0x40(%rbp),%rsi
lea    0xe7e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
sub    $0x38,%rsp
movl   $0x3f400000,0x4(%rsp)
3f
lea    0x8(%rsp),%rdi
lea    0x4(%rsp),%rsi
mov    $0x4,%edx
call   1050 <memcpy@plt>
mov    $0xffffffde,%ebp
lea    0xea2(%rip),%rbx
xchg   %ax,%ax
mov    0x8(%rsp),%rsi
and    $0x1,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
inc    %ebp
jne    1160 <main+0x30>
movb   $0x0,0x32(%rsp)
lea    0x10(%rsp),%rdi
call   1030 <puts@plt>
add    $0x38,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%ld\0A\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define void @main() {
%1 = alloca float
%2 = alloca i64
%3 = alloca i32
%4 = alloca [34 x i8]
store float 7.500000e-01, float* %1
%5 = call i32 @memcpy(i64* %2, float* %1, i32 4)
store i32 33, i32* %3
br label %6
6: ; preds = %13, %0
%7 = load i32, i32* %3
%8 = icmp sge i32 %7, 0
br i1 %8, label %9, label %16
9: ; preds = %6
%10 = load i64, i64* %2
%11 = urem i64 %10, 2
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 %11)
br label %13
13: ; preds = %9
%14 = load i32, i32* %3
%15 = add nsw i32 %14, -1
store i32 %15, i32* %3
br label %6
16: ; preds = %6
%17 = getelementptr inbounds [34 x i8], [34 x i8]* %4, i64 0, i64 34
store i8 0, i8* %17
%18 = getelementptr inbounds [34 x i8], [34 x i8]* %4, i64 0, i64 0
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %18)
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"%ld\0A\00"
define void @main() {
%1 = alloca float
%2 = alloca i64
%3 = alloca [34 x i8]
%4 = bitcast float* %1 to i8*
%5 = bitcast i64* %2 to i8*
%6 = getelementptr inbounds [34 x i8], [34 x i8]* %3, i64 0, i64 0
store float 7.500000e-01, float* %1
%7 = call i32 @memcpy(i64* %2, float* %1, i32 4)
br label %8
8: ; preds = %0, %8
%9 = phi i32 [ 33, %0 ], [ %13, %8 ]
%10 = load i64, i64* %2
%11 = and i64 %10, 1
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 %11)
%13 = add nsw i32 %9, -1
%14 = icmp eq i32 %9, 0
br i1 %14, label %15, label %8
15: ; preds = %8
%16 = getelementptr inbounds [34 x i8], [34 x i8]* %3, i64 0, i64 34
store i8 0, i8* %16
%17 = call i32 @puts(i8* %6)
ret void
}