#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*/ getchar();
int /*<<< orphan*/ myScanf(char *, int *, float *, int *);
int /*<<< orphan*/ printf(char *, ...);
void main(void) {
  int a, c;
  float b;
  printf("Sent Pointers(f,d): %p %p\n", &b, &a);
  getchar();
  myScanf("%d%f%d", &c, &b, &a);
  printf("%d\n%f\n%d\n", c, b, a);
  return;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xec1(%rip),%rdi
lea    -0xc(%rbp),%rsi
lea    -0x4(%rbp),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
lea    0xebf(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x4(%rbp),%rcx
call   1030 <myScanf@plt>
mov    -0x8(%rbp),%esi
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x4(%rbp),%edx
lea    0xe9f(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x18,%rsp
lea    0xec2(%rip),%rdi
lea    0xc(%rsp),%rbx
lea    0x14(%rsp),%r14
mov    %rbx,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <getchar@plt>
lea    0xeb8(%rip),%rdi
lea    0x10(%rsp),%rsi
mov    %rbx,%rdx
mov    %r14,%rcx
call   1030 <myScanf@plt>
mov    0x10(%rsp),%esi
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    0x14(%rsp),%edx
lea    0xe96(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [27 x i8] c"Sent Pointers(f,d): %p %p\0A\00"
@.str.1 = [7 x i8] c"%d%f%d\00"
@.str.2 = [10 x i8] c"%d\0A%f\0A%d\0A\00"
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), float* %3, i32* %1)
%5 = call i32 (...) @getchar()
%6 = call i32 @myScanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32* %2, float* %3, i32* %1)
%7 = load i32, i32* %2
%8 = load float, float* %3
%9 = fpext float %8 to double
%10 = load i32, i32* %1
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %7, double %9, i32 %10)
ret void
}

LLVM IR (-O2):
@.str = [27 x i8] c"Sent Pointers(f,d): %p %p\0A\00"
@.str.1 = [7 x i8] c"%d%f%d\00"
@.str.2 = [10 x i8] c"%d\0A%f\0A%d\0A\00"
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast float* %3 to i8*
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), float* %3, i32* %1)
%8 = call i32 (...) @getchar()
%9 = call i32 @myScanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32* %2, float* %3, i32* %1)
%10 = load i32, i32* %2
%11 = load float, float* %3
%12 = fpext float %11 to double
%13 = load i32, i32* %1
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %10, double %12, i32 %13)
ret void
}