#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 *, long, float);
int /*<<< orphan*/ scanf(char *, ...);
int main() {
  float c, f, d;
  long i, t;
  scanf("%ld", &t);
  for (i = 1; i <= t; i++) {
    scanf("%f %f", &c, &d);
    f = (9 * c) / 5 + 32;
    f = f + d;
    c = 5 * (f - 32) / 9;
    printf("Case %ld: %.2f\n", i, c);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xed6(%rip),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movq   $0x1,-0x18(%rbp)
mov    -0x18(%rbp),%rax
cmp    -0x20(%rbp),%rax
jg     11fa <main+0xda>
lea    0xeb2(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0x10(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
movss  0xe8b(%rip),%xmm0
mulss  -0x8(%rbp),%xmm0
movss  0xe82(%rip),%xmm1
divss  %xmm1,%xmm0
movss  0xe7a(%rip),%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
addss  -0x10(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm1
movss  0xe55(%rip),%xmm0
subss  %xmm0,%xmm1
movss  0xe45(%rip),%xmm0
mulss  %xmm1,%xmm0
movss  0xe35(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x8(%rbp)
mov    -0x18(%rbp),%rsi
movss  -0x8(%rbp),%xmm0
lea    0xe32(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1149 <main+0x29>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
lea    0xedc(%rip),%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
cmpq   $0x0,0x8(%rsp)
jle    11c6 <main+0xa6>
lea    0xec5(%rip),%r14
mov    %rsp,%r15
lea    0x4(%rsp),%r12
lea    0xebc(%rip),%r13
xor    %ebx,%ebx
add    $0x1,%rbx
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1040 <scanf@plt>
movss  (%rsp),%xmm0
movss  0xe7f(%rip),%xmm1
mulss  %xmm1,%xmm0
movss  0xe77(%rip),%xmm2
divss  %xmm2,%xmm0
addss  0xe6f(%rip),%xmm0
addss  0x4(%rsp),%xmm0
addss  0xe65(%rip),%xmm0
mulss  %xmm2,%xmm0
divss  %xmm1,%xmm0
movss  %xmm0,(%rsp)
mov    %r13,%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
cmp    0x8(%rsp),%rbx
jl     1160 <main+0x40>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%ld\00"
@.str.1 = [6 x i8] c"%f %f\00"
@.str.2 = [16 x i8] c"Case %ld: %.2f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca i64
%6 = alloca i64
store i32 0, i32* %1
%7 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64* %6)
store i64 1, i64* %5
br label %8
8: ; preds = %28, %0
%9 = load i64, i64* %5
%10 = load i64, i64* %6
%11 = icmp sle i64 %9, %10
br i1 %11, label %12, label %31
12: ; preds = %8
%13 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), float* %2, float* %4)
%14 = load float, float* %2
%15 = fmul float 9.000000e+00, %14
%16 = fdiv float %15, 5.000000e+00
%17 = fadd float %16, 3.200000e+01
store float %17, float* %3
%18 = load float, float* %3
%19 = load float, float* %4
%20 = fadd float %18, %19
store float %20, float* %3
%21 = load float, float* %3
%22 = fsub float %21, 3.200000e+01
%23 = fmul float 5.000000e+00, %22
%24 = fdiv float %23, 9.000000e+00
store float %24, float* %2
%25 = load i64, i64* %5
%26 = load float, float* %2
%27 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i64 %25, float %26)
br label %28
28: ; preds = %12
%29 = load i64, i64* %5
%30 = add nsw i64 %29, 1
store i64 %30, i64* %5
br label %8
31: ; preds = %8
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%ld\00"
@.str.1 = [6 x i8] c"%f %f\00"
@.str.2 = [16 x i8] c"Case %ld: %.2f\0A\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = alloca i64
%4 = bitcast float* %1 to i8*
%5 = bitcast float* %2 to i8*
%6 = bitcast i64* %3 to i8*
%7 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64* %3)
%8 = load i64, i64* %3
%9 = icmp slt i64 %8, 1
br i1 %9, label %26, label %10
10: ; preds = %0, %10
%11 = phi i64 [ %23, %10 ], [ 1, %0 ]
%12 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), float* %1, float* %2)
%13 = load float, float* %1
%14 = fmul float %13, 9.000000e+00
%15 = fdiv float %14, 5.000000e+00
%16 = fadd float %15, 3.200000e+01
%17 = load float, float* %2
%18 = fadd float %17, %16
%19 = fadd float %18, -3.200000e+01
%20 = fmul float %19, 5.000000e+00
%21 = fdiv float %20, 9.000000e+00
store float %21, float* %1
%22 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i64 %11, float %21)
%23 = add nuw nsw i64 %11, 1
%24 = load i64, i64* %3
%25 = icmp slt i64 %11, %24
br i1 %25, label %10, label %26
26: ; preds = %10, %0
ret i32 0
}