Documentation

Miri.Memory.AllocAddresses.AddressGenerator

A checked, source-shaped port of Miri's allocation AddressGenerator. The source RNG's 0..16 sample is represented by Fin 16, rather than by a fixed seed or a chosen pseudo-random stream.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      Instances For
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            Instances For
              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  @[instance_reducible]
                  Equations
                  • One or more equations did not get rendered due to their size.
                  Equations
                  Instances For
                    Equations
                    Instances For

                      The source sample is from the half-open range 0..16.

                      Equations
                      Instances For

                        Source align_addr, with the strict_add overflow made explicit. This preserves the source's evaluation order: it adds the whole alignment before subtracting the remainder.

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For

                          Execute one source generation step using a legal source random choice. The state includes the source mutation made before its final address-space check, including the updated next address on an exhaustion error.

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For