Skip to content
GitLab
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
    • Graph
    • Compare
    • Locked Files
  • Issues 92
    • Issues 92
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 5
    • Merge requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Eclipse ProjectsEclipse Projects
  • Eclipse ESCET (Supervisory Control Engineering Toolkit)
  • escet
  • Issues
  • #47
Closed
Open
Issue created Apr 10, 2021 by Dennis Hendriks@ddennisMaintainer

CIF simulator crashes on assignment to dictionary with non-int key

The following model:

automaton a:
    disc dict(string:string) x;
    location:
        initial;
        edge do x["a"] := "b";
end

crashes during simulation with the CIF simulator.

The problem is that AssignmentCodeGenerator contains for dictionary projection:

c.add("int key%d = %s;", i, gencodeExpr(proj.getIndex(), ctxt, state));

This hardcoded int type should be the key type.

Assignee
Assign to
Time tracking

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