Documentation

Miri.Memory.Scalar

The integer-or-pointer scalar core from mir/interpret/value.rs. Floating point wrappers are intentionally absent until the pinned apfloat conversion semantics are available; no host-float approximation is used.

Instances For
    Equations
    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.
        inductive Miri.Memory.ScalarPayload (Prov : Type) :
        Instances For
          @[instance_reducible]
          instance Miri.Memory.instReprScalarPayload {Prov✝ : Type} [Repr Prov✝] :
          Equations
          def Miri.Memory.instReprScalarPayload.repr {Prov✝ : Type} [Repr Prov✝] :
          ScalarPayload Prov✝ → Nat → Std.Format
          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
                Instances For
                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    Instances For
                      def Miri.Memory.instDecidableEqScalar.decEq {Prov✝ : Type} [DecidableEq Prov✝] (x✝ x✝¹ : Scalar Prov✝) :
                      Decidable (x✝ = x✝¹)
                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        @[instance_reducible]
                        instance Miri.Memory.instReprScalar {Prov✝ : Type} [Repr Prov✝] :
                        Repr (Scalar Prov✝)
                        Equations
                        def Miri.Memory.instReprScalar.repr {Prov✝ : Type} [Repr Prov✝] :
                        Scalar Prov✝ → Nat → Std.Format
                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For
                          def Miri.Memory.Scalar.size {Prov : Type} (self : Scalar Prov) :
                          Equations
                          Instances For
                            Equations
                            Instances For
                              def Miri.Memory.Scalar.fromPointer {Prov : Type} (layout : ABI.TargetDataLayout) (value : Pointer Prov) :
                              Scalar Prov
                              Equations
                              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
                                    Equations
                                    • One or more equations did not get rendered due to their size.
                                    Instances For
                                      def Miri.Memory.Scalar.fromInt {Prov : Type} (value : Int) (size : ABI.Size) :
                                      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
                                          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
                                              Equations
                                              • One or more equations did not get rendered due to their size.
                                              Instances For
                                                def Miri.Memory.Scalar.toBits {Prov : Type} [PointerProvenance Prov] (self : Scalar Prov) (targetSize : ABI.Size) :
                                                Equations
                                                • One or more equations did not get rendered due to their size.
                                                Instances For
                                                  Equations
                                                  Instances For
                                                    Equations
                                                    Instances For
                                                      Equations
                                                      Instances For
                                                        Equations
                                                        Instances For
                                                          Equations
                                                          Instances For
                                                            Equations
                                                            Instances For
                                                              Equations
                                                              Instances For
                                                                Equations
                                                                Instances For
                                                                  Equations
                                                                  Instances For
                                                                    Equations
                                                                    Instances For
                                                                      Equations
                                                                      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
                                                                            Equations
                                                                            • One or more equations did not get rendered due to their size.
                                                                            Instances For
                                                                              Equations
                                                                              Instances For
                                                                                Equations
                                                                                • One or more equations did not get rendered due to their size.
                                                                                Instances For