Sync upstream changes (2026-11-17) #4

Merged
Greensky merged 5 commits from sync/upstream-20261117-110128 into master 2026-11-17 11:01:30 +00:00
Owner

New upstream commits

  • 0e4a6f807 stdlib: add int.Bitwise and mach.int.Bitwise (François Bobot)
  • 8315445c7 Detect Colibri2 0.7 and use its syntax for int.Bitwise (François Bobot)
  • 386be201c examples: a model of int.Bitwise, proved with Colibri2 0.6 and Alt-Ergo (François Bobot)
  • 160d233a9 Merge branch 'bobot/agent/why3find/int-bitwise' into 'master' (BOBOT Francois)
### New upstream commits - 0e4a6f807 stdlib: add int.Bitwise and mach.int.Bitwise (François Bobot) - 8315445c7 Detect Colibri2 0.7 and use its syntax for int.Bitwise (François Bobot) - 386be201c examples: a model of int.Bitwise, proved with Colibri2 0.6 and Alt-Ergo (François Bobot) - 160d233a9 Merge branch 'bobot/agent/why3find/int-bitwise' into 'master' (BOBOT Francois)
int.Bitwise gives the bitwise operations on integers seen as infinite
two's complement numbers: testbit (false at a negative position), land,
lor, lxor, lnot, asr and lsl (a negative shift is a shift in the other
direction), mask, extract, signed_extract and update (a field of a
non-positive length is empty). All the operations are total.

mach.int.Bitwise has the corresponding programs, with the preconditions
of Zarith (counts, positions, offsets and lengths are native integers
that must be non-negative, and a length must be positive), extracted to
Zarith by the OCaml driver. There is no update in Zarith.

examples/bit_fields.mlw uses them.
stdlib: add int.Bitwise and mach.int.Bitwise

See merge request why3/why3!1412
Greensky merged commit 5a30d323a0 into master 2026-11-17 11:01:30 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Greensky/why3!4
No description provided.