Initial commit
Test (in pplus-core) / in-core (push) Failing after 28m44s

This commit is contained in:
alexm committed 2026-11-12 22:23:48 -05:00
commit 568474d52f
1591 files changed
+528213

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
// Sized whole numbers: arithmetic that stays inside its type, wrapping only when asked, and conversions that check.
// EXPECT: 255 0 255
// EXPECT: 1500000000 -2 256
// EXPECT: 8 14 6 255 1024 -4
// EXPECT: 12 12 -128 2147483647
DECLARE Count : UINT8 <- 250
Count <- Count + 5
OUTPUT Count, " ", WRAP(Count + 1, UINT8), " ", MAX_VALUE(UINT8)
DECLARE Big : INT64 <- 3_000_000_000
DECLARE Small : INT32
Small <- INT32(Big DIV 2)
OUTPUT Small, " ", INT16(-2.9), " ", 0xFF + 0b1
OUTPUT BIT_AND(0b1100, 0b1010), " ", BIT_OR(12, 10), " ", BIT_XOR(12, 10), " ", BIT_NOT(UINT8(0)), " ", SHIFT_LEFT(1, 10), " ", SHIFT_RIGHT(-8, 1)
OUTPUT GCD(84, 36), " ", LCM(4, 6), " ", MIN_VALUE(INT8), " ", MAX_VALUE(INT32)