diff options
author | Julien Bortolussi <bortolussi@adacore.com> | 2022-04-26 12:02:59 +0200 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2022-06-02 09:06:43 +0000 |
commit | 2a466ee093827650cd33fe877c1043441c4e9427 (patch) | |
tree | 61c4f0c2466e77c5a15281c1ea15b25b1acca73a /gcc/ada/gcc-interface/misc.cc | |
parent | 4c132238a51d407e1ab2388eaf8c6bce2fe5637f (diff) | |
download | gcc-2a466ee093827650cd33fe877c1043441c4e9427.zip gcc-2a466ee093827650cd33fe877c1043441c4e9427.tar.gz gcc-2a466ee093827650cd33fe877c1043441c4e9427.tar.bz2 |
[Ada] Make the functional Maps and Sets unbounded
Before this patch, the Functional Sets ans Maps were bounded both from
the user and the implementation points of view. To make them closer to
mathematical Sets ans Maps, this patch removes the bounds from the
contracts. Note that, in practice, they are still bounded by
Count_Type'Last, even if the user is not aware of it anymore.
This patch removed constraints on length of sets and maps from the
preconditions of functions. The function Length and Num_Overlaps now
return a Big_Natural.
gcc/ada/
* libgnat/a-cofuse.ads, libgnat/a-cofuse.adb,
libgnat/a-cofuma.ads, libgnat/a-cofuma.adb: Make Length and
Num_Overlaps return Big_Natural.
* libgnat/a-cforse.ads, libgnat/a-cforse.adb,
libgnat/a-cforma.adb, libgnat/a-cfhase.ads,
libgnat/a-cfhase.adb, libgnat/a-cfhama.adb,
libgnat/a-cfdlli.adb: Adapt code to handle Big_Integers instead
of Count_Type.
Diffstat (limited to 'gcc/ada/gcc-interface/misc.cc')
0 files changed, 0 insertions, 0 deletions