{"action":"created","issue":{"url":"https://api.github.com/repos/LeventErkok/sbv/issues/337","repository_url":"https://api.github.com/repos/LeventErkok/sbv","labels_url":"https://api.github.com/repos/LeventErkok/sbv/issues/337/labels{/name}","comments_url":"https://api.github.com/repos/LeventErkok/sbv/issues/337/comments","events_url":"https://api.github.com/repos/LeventErkok/sbv/issues/337/events","html_url":"https://github.com/LeventErkok/sbv/issues/337","id":277086277,"number":337,"title":"`SInteger` shouldn't be used with `sTestBit`?","user":{"login":"TomMD","id":137806,"avatar_url":"https://avatars2.githubusercontent.com/u/137806?v=4","gravatar_id":"","url":"https://api.github.com/users/TomMD","html_url":"https://github.com/TomMD","followers_url":"https://api.github.com/users/TomMD/followers","following_url":"https://api.github.com/users/TomMD/following{/other_user}","gists_url":"https://api.github.com/users/TomMD/gists{/gist_id}","starred_url":"https://api.github.com/users/TomMD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomMD/subscriptions","organizations_url":"https://api.github.com/users/TomMD/orgs","repos_url":"https://api.github.com/users/TomMD/repos","events_url":"https://api.github.com/users/TomMD/events{/privacy}","received_events_url":"https://api.github.com/users/TomMD/received_events","type":"User","site_admin":false},"labels":[{"id":81758,"url":"https://api.github.com/repos/LeventErkok/sbv/labels/Bug","name":"Bug","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-27T16:40:26Z","updated_at":"2017-12-14T19:25:26Z","closed_at":null,"author_association":"NONE","body":"I noticed testing bits of an integer results in `intSizeOf` being called on the sinteger type and this isn't either 1. documented or 2. prevented by the exposed api.\r\n\r\n```\r\n*Main> main\r\n*** Exception: SBV.HasKind.intSizeOf((S)Integer)\r\nCallStack (from HasCallStack):\r\n  error, called at ./Data/SBV/Core/Kind.hs:120:36 in sbv-7.4-9Uc4O1nrlOCEM12MDXkzmH:Data.SBV.Core.Kind\r\n```\r\n\r\nWhen running:\r\n\r\n```\r\nimport Data.SBV\r\nimport Data.List\r\n\r\nmain :: IO ()\r\nmain = print =<< seenil\r\n\r\nseenil :: IO (Maybe Integer)\r\nseenil = getModel <$> optimize Independent (do\r\n    x <- sInteger \"x\"\r\n    constrain (x .> 2)\r\n    constrain (bnot (sTestBit x 0))\r\n    minimize \"goal\" x)\r\n\r\ngetModel (LexicographicResult r)      = head <$> extractModel r\r\ngetModel (ParetoResult (_,r:_))       = head <$> extractModel r\r\ngetModel (IndependentResult ((_,r):_)) = head <$> extractModel r\r\ngetModel _                            = Nothing\r\n```"},"comment":{"url":"https://api.github.com/repos/LeventErkok/sbv/issues/comments/351810761","html_url":"https://github.com/LeventErkok/sbv/issues/337#issuecomment-351810761","issue_url":"https://api.github.com/repos/LeventErkok/sbv/issues/337","id":351810761,"user":{"login":"LeventErkok","id":549449,"avatar_url":"https://avatars0.githubusercontent.com/u/549449?v=4","gravatar_id":"","url":"https://api.github.com/users/LeventErkok","html_url":"https://github.com/LeventErkok","followers_url":"https://api.github.com/users/LeventErkok/followers","following_url":"https://api.github.com/users/LeventErkok/following{/other_user}","gists_url":"https://api.github.com/users/LeventErkok/gists{/gist_id}","starred_url":"https://api.github.com/users/LeventErkok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeventErkok/subscriptions","organizations_url":"https://api.github.com/users/LeventErkok/orgs","repos_url":"https://api.github.com/users/LeventErkok/repos","events_url":"https://api.github.com/users/LeventErkok/events{/privacy}","received_events_url":"https://api.github.com/users/LeventErkok/received_events","type":"User","site_admin":false},"created_at":"2017-12-14T19:25:26Z","updated_at":"2017-12-14T19:25:26Z","author_association":"OWNER","body":"@TomMD Did you get a chance to try this out? Would like to close the ticket if it's no longer an issue."}}
{"actor":{"display_login":"LeventErkok"}}