void tip(float num2, int *i) {
  printf("    ");
  ;
  i = ((num2 = num2 - *i), &num2);
  switch ((int)((*i = *i & 0x7fffffff), num2)) {
  case 1:
    printf("hot");
    goto endline;
  default: {
  }
    printf("cold");
  endline:
    printf("\n");
    break;
  case 2:
    printf("warm"
           "\n");
    break;
  }
}


x86 assembly (clang, -O0):
<tip>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
mov    %rdi,-0x10(%rbp)
lea    0xed8(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
movss  -0x4(%rbp),%xmm0
mov    -0x10(%rbp),%rax
cvtsi2ssl (%rax),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x4(%rbp)
lea    -0x4(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
and    $0x7fffffff,%ecx
mov    %ecx,(%rax)
cvttss2si -0x4(%rbp),%eax
mov    %eax,-0x14(%rbp)
sub    $0x1,%eax
je     1182 <tip+0x72>
jmp    1171 <tip+0x61>
mov    -0x14(%rbp),%eax
sub    $0x2,%eax
je     11b6 <tip+0xa6>
jmp    1195 <tip+0x85>
lea    0xe7c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11a3 <tip+0x93>
lea    0xe6d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe68(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11c4 <tip+0xb4>
lea    0xe51(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tip>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
movaps %xmm0,(%rsp)
lea    0xecd(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xorps  %xmm0,%xmm0
cvtsi2ssl (%rbx),%xmm0
movaps (%rsp),%xmm1
subss  %xmm0,%xmm1
andps  0xea0(%rip),%xmm1
cvttss2si %xmm1,%eax
cmp    $0x1,%eax
je     117f <tip+0x4f>
cmp    $0x2,%eax
jne    1188 <tip+0x58>
lea    0xea9(%rip),%rdi
add    $0x10,%rsp
pop    %rbx
jmp    1040 <puts@plt>
lea    0xe8f(%rip),%rdi
jmp    118f <tip+0x5f>
lea    0xe8a(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
add    $0x10,%rsp
pop    %rbx
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [5 x i8] c" \00"
@.str.1 = [4 x i8] c"hot\00"
@.str.2 = [5 x i8] c"cold\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [6 x i8] c"warm\0A\00"
define void @tip(float %0, i32* %1) {
%3 = alloca float
%4 = alloca i32*
store float %0, float* %3
store i32* %1, i32** %4
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%6 = load float, float* %3
%7 = load i32*, i32** %4
%8 = load i32, i32* %7
%9 = sitofp i32 %8 to float
%10 = fsub float %6, %9
store float %10, float* %3
%11 = bitcast float* %3 to i32*
store i32* %11, i32** %4
%12 = load i32*, i32** %4
%13 = load i32, i32* %12
%14 = and i32 %13, 2147483647
%15 = load i32*, i32** %4
store i32 %14, i32* %15
%16 = load float, float* %3
%17 = fptosi float %16 to i32
switch i32 %17, label %20 [
i32 1, label %18
i32 2, label %24
]
18: ; preds = %2
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %22
20: ; preds = %2
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %22
22: ; preds = %20, %18
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %26
24: ; preds = %2
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %26
26: ; preds = %24, %22
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c" \00"
@.str.1 = [4 x i8] c"hot\00"
@.str.2 = [5 x i8] c"cold\00"
@str = [5 x i8] c"warm\00"
define void @tip(float %0, i32* nocapture %1) {
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* %1
%5 = sitofp i32 %4 to float
%6 = fsub float %0, %5
%7 = bitcast float %6 to i32
%8 = and i32 %7, 2147483647
%9 = bitcast i32 %8 to float
%10 = fptosi float %9 to i32
switch i32 %10, label %11 [
i32 1, label %12
i32 2, label %16
]
11: ; preds = %2
br label %12
12: ; preds = %2, %11
%13 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), %11 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), %2 ]
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %13)
%15 = tail call i32 @putchar(i32 10)
br label %18
16: ; preds = %2
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0))
br label %18
18: ; preds = %16, %12
ret void
}