#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(void) {
  int year;
  scanf("%d", &year);
  if ((year % 400 == 0) || (year % 4 == 0 && year % 100 != 0)) {
    printf("Bissexto\n");
    return 0;
  } else {
    printf("Não bissexto\n");
    return 1;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
mov    $0x190,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     117b <main+0x5b>
mov    -0x8(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1193 <main+0x73>
mov    -0x8(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1193 <main+0x73>
lea    0xe81(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    11a6 <main+0x86>
lea    0xe73(%rip),%rdi
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xed4(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1040 <scanf@plt>
mov    0xc(%rsp),%ecx
imul   $0xc28f5c29,%ecx,%eax
add    $0x51eb850,%eax
mov    %eax,%edx
ror    $0x4,%edx
cmp    $0xa3d70b,%edx
jb     117c <main+0x5c>
test   $0x3,%cl
setne  %cl
ror    $0x2,%eax
cmp    $0x28f5c29,%eax
setb   %al
or     %cl,%al
lea    0xe97(%rip),%rcx
lea    0xe9e(%rip),%rdi
cmovne %rcx,%rdi
movzbl %al,%ebx
jmp    1185 <main+0x65>
xor    %ebx,%ebx
lea    0xe8c(%rip),%rdi
call   1030 <puts@plt>
mov    %ebx,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [10 x i8] c"Bissexto\0A\00"
@.str.2 = [15 x i8] c"N\C3\A3o bissexto\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%4 = load i32, i32* %2
%5 = srem i32 %4, 400
%6 = icmp eq i32 %5, 0
br i1 %6, label %15, label %7
7: ; preds = %0
%8 = load i32, i32* %2
%9 = srem i32 %8, 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %17
11: ; preds = %7
%12 = load i32, i32* %2
%13 = srem i32 %12, 100
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %11, %0
%16 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %1
br label %19
17: ; preds = %11, %7
%18 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %1
br label %19
19: ; preds = %17, %15
%20 = load i32, i32* %1
ret i32 %20
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@str = [14 x i8] c"N\C3\A3o bissexto\00"
@str.3 = [9 x i8] c"Bissexto\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = srem i32 %4, 400
%6 = icmp eq i32 %5, 0
br i1 %6, label %15, label %7
7: ; preds = %0
%8 = and i32 %4, 3
%9 = icmp ne i32 %8, 0
%10 = srem i32 %4, 100
%11 = icmp eq i32 %10, 0
%12 = or i1 %9, %11
%13 = select i1 %12, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @str.3, i64 0, i64 0)
%14 = zext i1 %12 to i32
br label %15
15: ; preds = %7, %0
%16 = phi i8* [ getelementptr inbounds ([9 x i8], [9 x i8]* @str.3, i64 0, i64 0), %0 ], [ %13, %7 ]
%17 = phi i32 [ 0, %0 ], [ %14, %7 ]
%18 = call i32 @puts(i8* dereferenceable(1) %16)
ret i32 %17
}