1. 29 Jan, 2017 3 commits
  2. 23 Jan, 2017 1 commit
  3. 20 Jan, 2017 1 commit
  4. 03 Jan, 2017 14 commits
  5. 08 Dec, 2016 4 commits
  6. 07 Dec, 2016 3 commits
  7. 06 Dec, 2016 1 commit
  8. 05 Dec, 2016 2 commits
  9. 23 Nov, 2016 2 commits
  10. 16 Nov, 2016 2 commits
  11. 08 Nov, 2016 1 commit
  12. 24 Oct, 2016 1 commit
  13. 21 Oct, 2016 2 commits
    • Sylvain Dailler's avatar
      PA03-013 counterex: Projection function defined after being applied. · b00248b5
      Sylvain Dailler authored
      This patch solves a problem on the order of the generation of new
      declarations by intro_projections_counterexmp. The problem came from
      the combination of Trans.on_tagged_ls and Trans.decl. The former was used
      to know each projection function in advance and the latter would
      introduce new declarations directly at the definition of the decl being
      analysed sometimes using projections functions before they are defined.
      
      This patch makes intro_projections_counterexmp.ml adds declarations only
      at the end of the task. So we are sure that any meta is really defined
      before.
      
      * src/transform/intro_projections_counterexmp.ml
       (introduce_constant): Minor clarification.
       (projections_for_term): Replacing append with proper symbol. Also adding
        already computed list of declaration to the output.
       (introduce_projs): Removing already defined declarations from the set of
        declaration we will add.
       (build_projections_map): The order of elements is irrelevant so
        it is faster to use cons instead of append.
       (meta_transform2): Add declarations created by f at the end of the task.
       (encapsulate): Compose meta_transform2 and introduce_projs.
       (commented meta_transform2): Request for a fold able to do what is
        described.
      b00248b5
    • Sylvain Dailler's avatar
      P419-017 counterex- Missing one liner with multidim array · bc0b6ca9
      Sylvain Dailler authored
      The one liner is missing because we did not project value of array
      elements in intro_projections_counterexmp. I changed the whole algorithm
      of projections to allow projecting values of multidim array. Also,
      moved local functions outside the main function. Added some trivial
      helping functions.
      
      * intro_projections_counterexmp
       (detect_map_types): Takes a type and return the list of successive types
        in the map and the return type. On map int (map int int) returns
        ([int; int], int).
       (last_type): Takes a list of proj_functions and returns the return type
        of the last projections_function that will be applied.
       (recreate_types): Recreates the type of the map with projected return
        type.
       (create_index_list): Returns a list of new well typed symbol for
        application in the axiom.
       (recreate_term_applications): Apply array to indices.
       (list_projection_until_base_type): Returns the list of all possible
        list of proj_functions applied to it.
       (projections_for_term): Changed the map part almost completely. We do
        not call this function recursively but we used other functions to get
        the recursive behavior.
      bc0b6ca9
  14. 20 Oct, 2016 2 commits
  15. 19 Oct, 2016 1 commit