1. 05 Mar, 2010 5 commits
    • Francois Bobot's avatar
      Mise à jour de transform, inlining,flatten,... cependant anomalie car un use... · 4e3490c3
      Francois Bobot authored
      Mise à jour de transform, inlining,flatten,... cependant anomalie car un use peut être ajouté par add_decl...
      4e3490c3
    • Andrei Paskevich's avatar
      84d9769a
    • Jean-Christophe Filliâtre's avatar
      No commit message · 084b8e7b
      Jean-Christophe Filliâtre authored
      No commit message
      084b8e7b
    • Andrei Paskevich's avatar
      fix an invariant violation in the previous commit: · 811887fa
      Andrei Paskevich authored
      the [Duse] declaration are preserved on Context.use_export,
      so that ctxt_known can be always restored from ctxt_decls.
      811887fa
    • Andrei Paskevich's avatar
      refactor theory.ml: · 1c21c061
      Andrei Paskevich authored
      - split clone code between contexts and theories
      
      - add [Dclone] declarations after cloned decls
      
      - account for the used theories in [ctxt_known]
        (the hash-consed [Duse] declaration is referenced)
      
      - provide use and clone for contexts with a distinct semantics:
      
          Context.use_export ctxt th :
              Copies the contents of [th] and its dependencies
              into [ctxt]. The [Duse] declarations are erased
              from the list of decls, but keeped in [ctxt_known],
              so that theories are not copied twice. Useful to
              build flat contexts.
      
          Context.clone_export ctxt th :
              Clones the contents of [th] into [ctxt]. Dependencies
              of [th] are copied, too. Erases the [Duse] declarations,
              but keeps them in [ctxt_known], so that theories are not
              copied twice. Useful to build flat contexts.
      
          Theory.use_export uc th :
              Marks the dependency on [th]. [Duse th] is added to [uc],
              unless [th] is already used.
      
          Theory.clone_export uc th :
              Clones the contents of [th] into [uc]. The dependencies
              of [th] become dependencies of [uc]. [Duse] declarations
              are added, when a theory is used for the first time.
      
      1c21c061
  2. 04 Mar, 2010 18 commits
  3. 03 Mar, 2010 11 commits
  4. 02 Mar, 2010 6 commits