#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 /*<<< orphan*/ scanf(char *, int *);
int main() {
  int wiek, miesiace, dni, godziny, minuty;
  long int sekundy;
  int rok;
  printf("Podaj swój wiek: ");
  scanf("%d", &wiek);
  miesiace = wiek * 12;
  dni = wiek * 12;
  godziny = dni * 24;
  minuty = godziny * 60;
  sekundy = minuty * 60;
  return ((rok % 4 == 0) && (rok % 100 != 0)) || (rok % 400 == 0);
  printf("Twój wiek w sekundach:\n");
  printf("%d miesięcy\n", miesiace);
  printf("%d dni\n", dni);
  printf("%d godzin\n", godziny);
  printf("%d minut\n", minuty);
  printf("%d sekund\n", sekundy);
  printf("Twój wiek w sekundach:\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xecf(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
imul   $0xc,-0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
imul   $0xc,-0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
imul   $0x18,-0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
imul   $0x3c,-0x14(%rbp),%eax
mov    %eax,-0x18(%rbp)
imul   $0x3c,-0x18(%rbp),%eax
cltq
mov    %rax,-0x20(%rbp)
mov    -0x24(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11a0 <main+0x80>
mov    -0x24(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    $0x1,%al
cmp    $0x0,%edx
mov    %al,-0x25(%rbp)
jne    11b4 <main+0x94>
mov    -0x24(%rbp),%eax
mov    $0x190,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
sete   %al
mov    %al,-0x25(%rbp)
mov    -0x25(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xedd(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [19 x i8] c"Podaj sw\C3\B3j wiek: \00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i64
%8 = alloca i32
store i32 0, i32* %1
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%11 = load i32, i32* %2
%12 = mul nsw i32 %11, 12
store i32 %12, i32* %3
%13 = load i32, i32* %2
%14 = mul nsw i32 %13, 12
store i32 %14, i32* %4
%15 = load i32, i32* %4
%16 = mul nsw i32 %15, 24
store i32 %16, i32* %5
%17 = load i32, i32* %5
%18 = mul nsw i32 %17, 60
store i32 %18, i32* %6
%19 = load i32, i32* %6
%20 = mul nsw i32 %19, 60
%21 = sext i32 %20 to i64
store i64 %21, i64* %7
%22 = load i32, i32* %8
%23 = srem i32 %22, 4
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %29
25: ; preds = %0
%26 = load i32, i32* %8
%27 = srem i32 %26, 100
%28 = icmp ne i32 %27, 0
br i1 %28, label %33, label %29
29: ; preds = %25, %0
%30 = load i32, i32* %8
%31 = srem i32 %30, 400
%32 = icmp eq i32 %31, 0
br label %33
33: ; preds = %29, %25
%34 = phi i1 [ true, %25 ], [ %32, %29 ]
%35 = zext i1 %34 to i32
ret i32 %35
}

LLVM IR (-O2):
@.str = [19 x i8] c"Podaj sw\C3\B3j wiek: \00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
ret i32 1
}