Integer wrap around semantics GNU is probably gone.
Don’t know exactly. The change log for 1.6.0 has something:
2023-07-06 daniel.diaz@univ-paris1.fr
improve other arithmetic error detection (in both integer and float functions
fix issue #47: add integer overflow detection
https://github.com/didoudiaz/gprolog/blob/8ce915bcb85c27c84645d6cff4108973e4fb2acd/ChangeLog
So I guess you don’t need to emulate wrap around integers,
if you would provide more GNU support. And the analogue to
a library(file_system)
for SICStus prolog compatibility like here:
file_systems.pl – SICStus 4 library(file_systems)
https://www.swi-prolog.org/pldoc/doc/SWI/library/dialect/sicstus4/file_systems.pl
Would possibly also not be a full emulation. Only the file
system predicates from GNU would land in some SWI-Prolog library.
But I didn’t yet manage to compile GNU 1.6.0 so that it has
same speed as GNU 1.5.0 or GNU 1.4.5. So I am using still
GNU 1.5.0 or GNU 1.4.5 whenever I am refering to GNU. Not
yet the new GNU 1.6.0, which I am too stupid to compile correctly