#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 *, int);
int main(int argc, char **argv) {
  int window1 = 1;
  float box2 = 2.f;
  double button3 = 3.f;
  char tree4 = 0x041;
  printf("int window: autoname( window ) -- '%d'\n", window1);
  printf("float box: autoname( box ) -- '%g'\n", box2);
  printf("double button: autonae( button ) -- '%g'\n", button3);
  printf("char tree: autoname( tree ) -- '%c'\n", tree4);
  printf("autoname( 2345, 6789 ) -- '%d'\n", 23456789);
  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)
movl   $0x1,-0x14(%rbp)
movss  0xed3(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
movsd  0xebe(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movb   $0x41,-0x21(%rbp)
mov    -0x14(%rbp),%esi
lea    0xeb7(%rip),%rdi
call   1030 <printf@plt>
cvttss2si -0x18(%rbp),%esi
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
cvttsd2si -0x20(%rbp),%esi
lea    0xee1(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x21(%rbp),%esi
lea    0xefb(%rip),%rdi
call   1030 <printf@plt>
lea    0xf14(%rip),%rdi
mov    $0x165ec15,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xeff(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xf12(%rip),%rdi
mov    $0x3,%esi
call   1030 <printf@plt>
lea    0xf2b(%rip),%rdi
mov    $0x41,%esi
call   1030 <printf@plt>
lea    0xf3f(%rip),%rdi
mov    $0x165ec15,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [40 x i8] c"int window: autoname( window ) -- '%d'\0A\00"
@.str.1 = [36 x i8] c"float box: autoname( box ) -- '%g'\0A\00"
@.str.2 = [42 x i8] c"double button: autonae( button ) -- '%g'\0A\00"
@.str.3 = [37 x i8] c"char tree: autoname( tree ) -- '%c'\0A\00"
@.str.4 = [32 x i8] c"autoname( 2345, 6789 ) -- '%d'\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca float
%8 = alloca double
%9 = alloca i8
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %6
store float 2.000000e+00, float* %7
store double 3.000000e+00, double* %8
store i8 65, i8* %9
%10 = load i32, i32* %6
%11 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i32 %10)
%12 = load float, float* %7
%13 = fptosi float %12 to i32
%14 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0), i32 %13)
%15 = load double, double* %8
%16 = fptosi double %15 to i32
%17 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i32 %16)
%18 = load i8, i8* %9
%19 = sext i8 %18 to i32
%20 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 %19)
%21 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 23456789)
ret i32 0
}

LLVM IR (-O2):
@.str = [40 x i8] c"int window: autoname( window ) -- '%d'\0A\00"
@.str.1 = [36 x i8] c"float box: autoname( box ) -- '%g'\0A\00"
@.str.2 = [42 x i8] c"double button: autonae( button ) -- '%g'\0A\00"
@.str.3 = [37 x i8] c"char tree: autoname( tree ) -- '%c'\0A\00"
@.str.4 = [32 x i8] c"autoname( 2345, 6789 ) -- '%d'\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i32 1)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0), i32 2)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i32 3)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 65)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 23456789)
ret i32 0
}