#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 */
typedef int /*<<< orphan*/ y;
typedef int /*<<< orphan*/ x;
typedef int /*<<< orphan*/ w;
typedef int /*<<< orphan*/ v;
typedef int /*<<< orphan*/ u;
typedef int /*<<< orphan*/ c;
typedef int /*<<< orphan*/ answer;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main(void) {
  int answer;
  short x = 1;
  long y = 2;
  float u = 3.0;
  double v = 4.4;
  long double w = 5.54;
  char c = 'p';
  ;
  printf("Date : %s\n", "Mar 19 2022");
  printf("Time : %s\n", "07:20:55");
  printf("File : %s\n", "/scratch/repos/new/home/jordi_armengol_estape/"
                        "c-scraper/outputs/2022-01-22/02-19-57/repos/xyproto/"
                        "c2go/refs/heads/master/doesnotworkyet/misc.c");
  printf("Line : %d\n", 20);
  printf("Enter 1 or 0 : ");
  scanf("%d", &answer);
  printf("%s\n", answer ? "You said YES" : "You said NO");
  printf("The size of int %d\n", sizeof(answer));
  printf("The size of short %d\n", sizeof(x));
  printf("The size of long %d\n", sizeof(y));
  printf("The size of float %d\n", sizeof(u));
  printf("The size of double %d\n", sizeof(v));
  printf("The size of long double %d\n", sizeof(w));
  printf("The size of char %d\n", sizeof(c));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movw   $0x1,-0x6(%rbp)
movq   $0x2,-0x10(%rbp)
movl   $0x40400000,-0x14(%rbp)
movabs $0x401199999999999a,%rax
99 11 40
mov    %rax,-0x20(%rbp)
fldl   0xeaf(%rip)
fstpt  -0x30(%rbp)
movb   $0x70,-0x31(%rbp)
lea    0xea9(%rip),%rdi
lea    0xead(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeab(%rip),%rdi
lea    0xeaf(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeaa(%rip),%rdi
lea    0xeae(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf2f(%rip),%rdi
mov    $0x14,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf27(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf29(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x4(%rbp),%ecx
lea    0xf26(%rip),%rsi
lea    0xf12(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rsi
lea    0xe53(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0f(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf10(%rip),%rdi
mov    $0x2,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf13(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf15(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf18(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1c(%rip),%rdi
mov    $0x10,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf25(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0xecc(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeca(%rip),%rdi
lea    0xece(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec9(%rip),%rdi
lea    0xecd(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf4e(%rip),%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf46(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf48(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1050 <scanf@plt>
cmpl   $0x0,0x4(%rsp)
lea    0xf42(%rip),%rax
lea    0xf2e(%rip),%rdi
cmove  %rax,%rdi
call   1030 <puts@plt>
lea    0xf37(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf38(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf3b(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf3d(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf40(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf44(%rip),%rdi
mov    $0x10,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf4d(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [11 x i8] c"Date : %s\0A\00"
@.str.1 = [12 x i8] c"Mar 19 2022\00"
@.str.2 = [11 x i8] c"Time : %s\0A\00"
@.str.3 = [9 x i8] c"07:20:55\00"
@.str.4 = [11 x i8] c"File : %s\0A\00"
@.str.5 = [143 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/xyproto/c2go/refs/heads/master/doesnotworkyet/misc.c\00"
@.str.6 = [11 x i8] c"Line : %d\0A\00"
@.str.7 = [16 x i8] c"Enter 1 or 0 : \00"
@.str.8 = [3 x i8] c"%d\00"
@.str.9 = [4 x i8] c"%s\0A\00"
@.str.10 = [13 x i8] c"You said YES\00"
@.str.11 = [12 x i8] c"You said NO\00"
@.str.12 = [20 x i8] c"The size of int %d\0A\00"
@.str.13 = [22 x i8] c"The size of short %d\0A\00"
@.str.14 = [21 x i8] c"The size of long %d\0A\00"
@.str.15 = [22 x i8] c"The size of float %d\0A\00"
@.str.16 = [23 x i8] c"The size of double %d\0A\00"
@.str.17 = [28 x i8] c"The size of long double %d\0A\00"
@.str.18 = [21 x i8] c"The size of char %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i16
%3 = alloca i64
%4 = alloca float
%5 = alloca double
%6 = alloca x86_fp80
%7 = alloca i8
store i16 1, i16* %2
store i64 2, i64* %3
store float 3.000000e+00, float* %4
store double 4.400000e+00, double* %5
store x86_fp80 0xK4001B147AE147AE14800, x86_fp80* %6
store i8 112, i8* %7
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str.5, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i32 20)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32* %1)
%14 = load i32, i32* %1
%15 = icmp ne i32 %14, 0
%16 = zext i1 %15 to i64
%17 = select i1 %15, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i8* %17)
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0), i64 4)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0), i64 2)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.14, i64 0, i64 0), i64 8)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0), i64 4)
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.16, i64 0, i64 0), i64 8)
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.17, i64 0, i64 0), i64 16)
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.18, i64 0, i64 0), i64 1)
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c"Date : %s\0A\00"
@.str.1 = [12 x i8] c"Mar 19 2022\00"
@.str.2 = [11 x i8] c"Time : %s\0A\00"
@.str.3 = [9 x i8] c"07:20:55\00"
@.str.4 = [11 x i8] c"File : %s\0A\00"
@.str.5 = [143 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/xyproto/c2go/refs/heads/master/doesnotworkyet/misc.c\00"
@.str.6 = [11 x i8] c"Line : %d\0A\00"
@.str.7 = [16 x i8] c"Enter 1 or 0 : \00"
@.str.8 = [3 x i8] c"%d\00"
@.str.10 = [13 x i8] c"You said YES\00"
@.str.11 = [12 x i8] c"You said NO\00"
@.str.12 = [20 x i8] c"The size of int %d\0A\00"
@.str.13 = [22 x i8] c"The size of short %d\0A\00"
@.str.14 = [21 x i8] c"The size of long %d\0A\00"
@.str.15 = [22 x i8] c"The size of float %d\0A\00"
@.str.16 = [23 x i8] c"The size of double %d\0A\00"
@.str.17 = [28 x i8] c"The size of long double %d\0A\00"
@.str.18 = [21 x i8] c"The size of char %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str.5, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i32 20)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32* %1)
%9 = load i32, i32* %1
%10 = icmp eq i32 %9, 0
%11 = select i1 %10, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0)
%12 = call i32 @puts(i8* dereferenceable(1) %11)
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0), i64 4)
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0), i64 2)
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.14, i64 0, i64 0), i64 8)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0), i64 4)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.16, i64 0, i64 0), i64 8)
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.17, i64 0, i64 0), i64 16)
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.18, i64 0, i64 0), i64 1)
ret i32 0
}