81 lines
602 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-08 11:38:44 +00:00
if x >= 1 {
2024-07-07 15:13:22 +00:00
exit(1)
}
2024-07-08 11:38:44 +00:00
if 1 <= x {
2024-07-07 15:13:22 +00:00
exit(1)
}
2024-07-08 11:38:44 +00:00
if x + 1 != x + 1 {
2024-07-07 15:13:22 +00:00
exit(1)
}
if x + 1 != inc(x) {
exit(1)
}
2024-07-08 11:38:44 +00:00
if x - 1 != dec(x) {
exit(1)
}
if inc(x) != x + 1 {
exit(1)
}
if dec(x) != x - 1 {
exit(1)
}
if x != inc(dec(x)) {
exit(1)
}
if inc(dec(x)) != x {
2024-07-07 15:13:22 +00:00
exit(1)
}
if x == 0 {
exit(0)
}
exit(1)
}
exit(x) {
syscall(60, x)
}
inc(x) {
return x + 1
}
dec(x) {
return x - 1
}