#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*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ prtnl();
int /*<<< orphan*/ prtreal(double);
int /*<<< orphan*/ stderr;
void prtdifr(char *name, double old, double new, long listed) {
  fprintf(stderr, "%s:", name);
  prtreal(old);
  fprintf(stderr, " -> ");
  prtreal(new);
  prtnl();
}


x86 assembly (clang, -O0):
<prtdifr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    0x2e8f(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xea2(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movsd  -0x10(%rbp),%xmm0
call   1040 <prtreal@plt>
mov    0x2e6a(%rip),%rax
mov    (%rax),%edi
lea    0xe85(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movsd  -0x18(%rbp),%xmm0
call   1040 <prtreal@plt>
mov    $0x0,%al
call   1030 <prtnl@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<prtdifr>:
push   %rbx
sub    $0x10,%rsp
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,(%rsp)
mov    %rdi,%rdx
mov    0x2e96(%rip),%rbx
mov    (%rbx),%edi
lea    0xead(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
movsd  (%rsp),%xmm0
call   1040 <prtreal@plt>
mov    (%rbx),%edi
lea    0xe97(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
movsd  0x8(%rsp),%xmm0
call   1040 <prtreal@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
jmp    1030 <prtnl@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [4 x i8] c"%s:\00"
@.str.1 = [5 x i8] c" -> \00"
define void @prtdifr(i8* %0, double %1, double %2, i64 %3) {
%5 = alloca i8*
%6 = alloca double
%7 = alloca double
%8 = alloca i64
store i8* %0, i8** %5
store double %1, double* %6
store double %2, double* %7
store i64 %3, i64* %8
%9 = load i32, i32* @stderr
%10 = load i8*, i8** %5
%11 = call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %10)
%12 = load double, double* %6
%13 = call i32 @prtreal(double %12)
%14 = load i32, i32* @stderr
%15 = call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%16 = load double, double* %7
%17 = call i32 @prtreal(double %16)
%18 = call i32 (...) @prtnl()
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [4 x i8] c"%s:\00"
@.str.1 = [5 x i8] c" -> \00"
define void @prtdifr(i8* %0, double %1, double %2, i64 %3) {
%5 = load i32, i32* @stderr
%6 = tail call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %0)
%7 = tail call i32 @prtreal(double %1)
%8 = load i32, i32* @stderr
%9 = tail call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%10 = tail call i32 @prtreal(double %2)
%11 = tail call i32 (...) @prtnl()
ret void
}