Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • E escet
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 91
    • Issues 91
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 7
    • Merge requests 7
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Eclipse Projects
  • Eclipse ESCET (Supervisory Control Engineering Toolkit)
  • escet
  • Issues
  • #134

Closed
Open
Created Jul 02, 2021 by Ferdie Reijnen@freijnenDeveloper

CIF to CIF elim def/inst transformation may produce invalid models for assignments with algebraic parameters.

Similar to issue #105 (closed). It is related to issue #114, differently here the implicit range is already problematic.

group def X(alg int y):
  automaton A:
      disc int[0..0] x;
      event e;
      location:
          initial;
          edge e do x := y;
  end
end

x: X(1);

Is transformed into:

group x:
  alg int y = 1;
  automaton A:
    disc int[0..0] x;
    event e;
    location:
      initial;
      edge e do x := y;
  end
end

Now, x := y gives the following error:

The type "int[1..1]" of the value of the assignment is incompatible with type "int[0..0]" of the addressable.

The problem is that we go from a rangeless int to an (implicit) ranged int.

My understanding is that CIF to CIF transformations should not generate invalid models if the input model is valid.

Assignee
Assign to
Time tracking

Copyright © Eclipse Foundation, Inc. All Rights Reserved.     Privacy Policy | Terms of Use | Copyright Agent