65 lines
517 B
Plaintext
Raw Normal View History

2024-07-07 15:13:22 +00:00
main() {
x := 0
if x != 0 {
exit(1)
}
if x > 0 {
exit(1)
}
if x < 0 {
exit(1)
}
if 0 != x {
exit(1)
}
if 0 > x {
exit(1)
}
if 0 < x {
exit(1)
}
2024-07-07 19:55:32 +00:00
if x >= 1 || 1 <= x {
2024-07-07 15:13:22 +00:00
exit(1)
}
2024-07-07 19:55:32 +00:00
if x == inc(x) || x == dec(x) {
2024-07-07 15:13:22 +00:00
exit(1)
}
2024-07-07 19:55:32 +00:00
if inc(0) == x || dec(0) == x || inc(x) == dec(x) {
2024-07-07 15:13:22 +00:00
exit(1)
}
if x + 1 != inc(x) {
exit(1)
}
if x + 1 != x + 1 {
exit(1)
}
if x == 0 {
exit(0)
}
exit(1)
}
exit(x) {
syscall(60, x)
}
inc(x) {
return x + 1
}
dec(x) {
return x - 1
}