{"action":"opened","issue":{"url":"https://api.github.com/repos/prekageo/optistate/issues/1","repository_url":"https://api.github.com/repos/prekageo/optistate","labels_url":"https://api.github.com/repos/prekageo/optistate/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/prekageo/optistate/issues/1/comments","events_url":"https://api.github.com/repos/prekageo/optistate/issues/1/events","html_url":"https://github.com/prekageo/optistate/issues/1","id":198281792,"number":1,"title":"No simple way to go from output / transition table to optistate input format","user":{"login":"TheLoneWolfling","id":2056317,"avatar_url":"https://avatars.githubusercontent.com/u/2056317?v=3","gravatar_id":"","url":"https://api.github.com/users/TheLoneWolfling","html_url":"https://github.com/TheLoneWolfling","followers_url":"https://api.github.com/users/TheLoneWolfling/followers","following_url":"https://api.github.com/users/TheLoneWolfling/following{/other_user}","gists_url":"https://api.github.com/users/TheLoneWolfling/gists{/gist_id}","starred_url":"https://api.github.com/users/TheLoneWolfling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheLoneWolfling/subscriptions","organizations_url":"https://api.github.com/users/TheLoneWolfling/orgs","repos_url":"https://api.github.com/users/TheLoneWolfling/repos","events_url":"https://api.github.com/users/TheLoneWolfling/events{/privacy}","received_events_url":"https://api.github.com/users/TheLoneWolfling/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-01T21:08:14Z","updated_at":"2017-01-01T21:08:14Z","closed_at":null,"body":"I've got an input table of the form:\r\n\r\n    outputs = {\r\n        \"Start\":\"0x00\",\r\n        \"A\":\"0101\",\r\n        ....\r\n    }\r\n    transitions = {\r\n        \"Start\":{\"00\":\"A\", \"1x\":\"Start\"},\r\n        \"A\":{\"10\":\"B\", \"11\":\"Start\"},\r\n        ...\r\n    }\r\n    state = \"Start\"\r\n    while state != \"End\":\r\n        output(outputs[state])\r\n        state = findWithDontCares(transitions[state], input())\r\n\r\n (Where missing transitions are don't-cares)\r\n\r\nIs there any simple way to automatically munge this into the proper format for optistate? In particular, trying to figure out \"given a state, what are the possible (state,input) pairs that lead here\" (especially when you toss in don't-cares) is \"fun\"."}}
{"actor":{"display_login":"TheLoneWolfling"}}