{"action":"created","issue":{"url":"https://api.github.com/repos/OpenModelica/OMCompiler/issues/2074","repository_url":"https://api.github.com/repos/OpenModelica/OMCompiler","labels_url":"https://api.github.com/repos/OpenModelica/OMCompiler/issues/2074/labels{/name}","comments_url":"https://api.github.com/repos/OpenModelica/OMCompiler/issues/2074/comments","events_url":"https://api.github.com/repos/OpenModelica/OMCompiler/issues/2074/events","html_url":"https://github.com/OpenModelica/OMCompiler/pull/2074","id":281648546,"number":2074,"title":"Some work-arounds for Ceval of zero-size arrays","user":{"login":"sjoelund","id":3016460,"avatar_url":"https://avatars0.githubusercontent.com/u/3016460?v=4","gravatar_id":"","url":"https://api.github.com/users/sjoelund","html_url":"https://github.com/sjoelund","followers_url":"https://api.github.com/users/sjoelund/followers","following_url":"https://api.github.com/users/sjoelund/following{/other_user}","gists_url":"https://api.github.com/users/sjoelund/gists{/gist_id}","starred_url":"https://api.github.com/users/sjoelund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjoelund/subscriptions","organizations_url":"https://api.github.com/users/sjoelund/orgs","repos_url":"https://api.github.com/users/sjoelund/repos","events_url":"https://api.github.com/users/sjoelund/events{/privacy}","received_events_url":"https://api.github.com/users/sjoelund/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-12-13T07:22:59Z","updated_at":"2017-12-13T08:25:05Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/OpenModelica/OMCompiler/pulls/2074","html_url":"https://github.com/OpenModelica/OMCompiler/pull/2074","diff_url":"https://github.com/OpenModelica/OMCompiler/pull/2074.diff","patch_url":"https://github.com/OpenModelica/OMCompiler/pull/2074.patch"},"body":"The Values.mo structure does not store the type of the array which means\r\nthat `Values.ARRAY({})` becomes `{} /* T_UNKNOWN[0] */` instead of\r\ncontaining the actual type. We now have some work-arounds for this case:\r\n- cevalIfConstant will not try to evaluate literal values\r\n- If an empty array is returned in cevalIfConstant, we backpatch the\r\n  array type to the expected type (but this only works for the top-level\r\n  expression; hopefully this is enough to not propagate unknown\r\n  dimensions too far though)."},"comment":{"url":"https://api.github.com/repos/OpenModelica/OMCompiler/issues/comments/351318246","html_url":"https://github.com/OpenModelica/OMCompiler/pull/2074#issuecomment-351318246","issue_url":"https://api.github.com/repos/OpenModelica/OMCompiler/issues/2074","id":351318246,"user":{"login":"OpenModelica-Hudson","id":12395824,"avatar_url":"https://avatars2.githubusercontent.com/u/12395824?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenModelica-Hudson","html_url":"https://github.com/OpenModelica-Hudson","followers_url":"https://api.github.com/users/OpenModelica-Hudson/followers","following_url":"https://api.github.com/users/OpenModelica-Hudson/following{/other_user}","gists_url":"https://api.github.com/users/OpenModelica-Hudson/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenModelica-Hudson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenModelica-Hudson/subscriptions","organizations_url":"https://api.github.com/users/OpenModelica-Hudson/orgs","repos_url":"https://api.github.com/users/OpenModelica-Hudson/repos","events_url":"https://api.github.com/users/OpenModelica-Hudson/events{/privacy}","received_events_url":"https://api.github.com/users/OpenModelica-Hudson/received_events","type":"User","site_admin":false},"created_at":"2017-12-13T08:25:05Z","updated_at":"2017-12-13T08:25:05Z","author_association":"MEMBER","body":"The tests run correctly according to [OpenModelica_TEST_PULL_REQUEST 2017-12-13_09-09-56](https://test.openmodelica.org/hudson//job/OpenModelica_TEST_PULL_REQUEST/5027/console)."}}
{"actor":{"display_login":"OpenModelica-Hudson"}}