#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*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, int, float);
int /*<<< orphan*/ scanf(char *, ...);
int /*<<< orphan*/ stdin;
int main(int argc, char *argv[]) {
  int i, t;
  float degree, fahrenheit, celsius;
  fflush(stdin);
  scanf("%d", &t);
  for (i = 1; i <= t; i++) {
    scanf("%f %f", &celsius, &degree);
    fahrenheit = (9 * celsius) / 5 + 32;
    fahrenheit += degree;
    celsius = (fahrenheit - 32) * 5 / 9;
    printf("Case %d: %.2f\n", i, celsius);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2e9b(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
lea    0xeb1(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     1218 <main+0xe8>
lea    0xe8f(%rip),%rdi
lea    -0x24(%rbp),%rsi
lea    -0x1c(%rbp),%rdx
mov    $0x0,%al
call   1050 <scanf@plt>
movss  0xe69(%rip),%xmm0
mulss  -0x24(%rbp),%xmm0
movss  0xe60(%rip),%xmm1
divss  %xmm1,%xmm0
movss  0xe58(%rip),%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x1c(%rbp),%xmm0
addss  -0x20(%rbp),%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x20(%rbp),%xmm0
movss  0xe33(%rip),%xmm1
subss  %xmm1,%xmm0
movss  0xe23(%rip),%xmm1
mulss  %xmm1,%xmm0
movss  0xe13(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x24(%rbp)
mov    -0x14(%rbp),%esi
movss  -0x24(%rbp),%xmm0
lea    0xe10(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    116d <main+0x3d>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    0x2ea5(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
lea    0xebf(%rip),%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
cmpl   $0x0,0x8(%rsp)
jle    11f5 <main+0xc5>
lea    0xea4(%rip),%r14
lea    0x4(%rsp),%r15
lea    0xc(%rsp),%r12
lea    0xe99(%rip),%rbx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%ebp
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1050 <scanf@plt>
movss  0x4(%rsp),%xmm0
movss  0xe4f(%rip),%xmm1
mulss  %xmm1,%xmm0
movss  0xe47(%rip),%xmm2
divss  %xmm2,%xmm0
addss  0xe3f(%rip),%xmm0
addss  0xc(%rsp),%xmm0
addss  0xe35(%rip),%xmm0
mulss  %xmm2,%xmm0
divss  %xmm1,%xmm0
movss  %xmm0,0x4(%rsp)
mov    %rbx,%rdi
mov    %ebp,%esi
call   1030 <printf@plt>
cmp    0x8(%rsp),%ebp
jl     1190 <main+0x60>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

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

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