From 9c7712e193c9b44cfe55302c9eab8ab015cc6fa1 Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Fri, 23 Oct 2026 12:25:51 +0100 Subject: [PATCH] raz.md: MAX(U64) and MAX(UINT) keep their type, as a hexadecimal number above the largest I64 does --- diff --git a/doc/raz.md b/doc/raz.md index 96de7cf..d37eb38 100644 --- a/doc/raz.md +++ b/doc/raz.md @@ -832,7 +832,9 @@ is 63. `POPCOUNT(x)` may also take a set, and counts its members. `MIN(T)` and `MAX(T)` are the smallest and the largest value of the integer type `T`, untyped constants: `MAX(U8)` is 255 and `MIN(I16)` is --32768. Each of the five, given constants, is a constant (section 4). +-32768; `MAX(U64)` and `MAX(UINT)`, above the largest `I64`, have their +own type, as a hexadecimal number above it has (section 2). Each of the five, given constants, is a +constant (section 4). Relations compare as signed or unsigned according to the type. diff --git a/doc/report-history.md b/doc/report-history.md index 7cdaf87..eed97ac 100644 --- a/doc/report-history.md +++ b/doc/report-history.md @@ -235,7 +235,8 @@ `Prop`, property tests and fuzzing with shrinking (volume 2). They are not core. And a twelfth thaw, by the owner's word: `MIN(T)` and `MAX(T)`, the smallest and largest value of an integer type, untyped - constants; and `CLZ(x)`, `CTZ(x)` and `POPCOUNT(x)`, which count the + constants but for `MAX(U64)` and `MAX(UINT)`, which keep their type; + and `CLZ(x)`, `CTZ(x)` and `POPCOUNT(x)`, which count the zero bits above the highest one, below the lowest one, and the one bits (or members of a set) of a word of an unsigned integer type, an `INT`, and of constants are a constant (sections 4, 6.1 and 6.8). A