{"action":"created","issue":{"url":"https://api.github.com/repos/sohah/VeritestingTransformations/issues/15","repository_url":"https://api.github.com/repos/sohah/VeritestingTransformations","labels_url":"https://api.github.com/repos/sohah/VeritestingTransformations/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/sohah/VeritestingTransformations/issues/15/comments","events_url":"https://api.github.com/repos/sohah/VeritestingTransformations/issues/15/events","html_url":"https://github.com/sohah/VeritestingTransformations/issues/15","id":365239484,"node_id":"MDU6SXNzdWUzNjUyMzk0ODQ=","number":15,"title":"createStaticRegion Serious Error Message","user":{"login":"sohah","id":10510966,"node_id":"MDQ6VXNlcjEwNTEwOTY2","avatar_url":"https://avatars2.githubusercontent.com/u/10510966?v=4","gravatar_id":"","url":"https://api.github.com/users/sohah","html_url":"https://github.com/sohah","followers_url":"https://api.github.com/users/sohah/followers","following_url":"https://api.github.com/users/sohah/following{/other_user}","gists_url":"https://api.github.com/users/sohah/gists{/gist_id}","starred_url":"https://api.github.com/users/sohah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sohah/subscriptions","organizations_url":"https://api.github.com/users/sohah/orgs","repos_url":"https://api.github.com/users/sohah/repos","events_url":"https://api.github.com/users/sohah/events{/privacy}","received_events_url":"https://api.github.com/users/sohah/received_events","type":"User","site_admin":false},"labels":[{"id":993115069,"node_id":"MDU6TGFiZWw5OTMxMTUwNjk=","url":"https://api.github.com/repos/sohah/VeritestingTransformations/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":{"login":"mwwhalen","id":5216954,"node_id":"MDQ6VXNlcjUyMTY5NTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/5216954?v=4","gravatar_id":"","url":"https://api.github.com/users/mwwhalen","html_url":"https://github.com/mwwhalen","followers_url":"https://api.github.com/users/mwwhalen/followers","following_url":"https://api.github.com/users/mwwhalen/following{/other_user}","gists_url":"https://api.github.com/users/mwwhalen/gists{/gist_id}","starred_url":"https://api.github.com/users/mwwhalen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwwhalen/subscriptions","organizations_url":"https://api.github.com/users/mwwhalen/orgs","repos_url":"https://api.github.com/users/mwwhalen/repos","events_url":"https://api.github.com/users/mwwhalen/events{/privacy}","received_events_url":"https://api.github.com/users/mwwhalen/received_events","type":"User","site_admin":false},"assignees":[{"login":"mwwhalen","id":5216954,"node_id":"MDQ6VXNlcjUyMTY5NTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/5216954?v=4","gravatar_id":"","url":"https://api.github.com/users/mwwhalen","html_url":"https://github.com/mwwhalen","followers_url":"https://api.github.com/users/mwwhalen/followers","following_url":"https://api.github.com/users/mwwhalen/following{/other_user}","gists_url":"https://api.github.com/users/mwwhalen/gists{/gist_id}","starred_url":"https://api.github.com/users/mwwhalen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwwhalen/subscriptions","organizations_url":"https://api.github.com/users/mwwhalen/orgs","repos_url":"https://api.github.com/users/mwwhalen/repos","events_url":"https://api.github.com/users/mwwhalen/events{/privacy}","received_events_url":"https://api.github.com/users/mwwhalen/received_events","type":"User","site_admin":false},{"login":"vaibhavbsharma","id":5904279,"node_id":"MDQ6VXNlcjU5MDQyNzk=","avatar_url":"https://avatars1.githubusercontent.com/u/5904279?v=4","gravatar_id":"","url":"https://api.github.com/users/vaibhavbsharma","html_url":"https://github.com/vaibhavbsharma","followers_url":"https://api.github.com/users/vaibhavbsharma/followers","following_url":"https://api.github.com/users/vaibhavbsharma/following{/other_user}","gists_url":"https://api.github.com/users/vaibhavbsharma/gists{/gist_id}","starred_url":"https://api.github.com/users/vaibhavbsharma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vaibhavbsharma/subscriptions","organizations_url":"https://api.github.com/users/vaibhavbsharma/orgs","repos_url":"https://api.github.com/users/vaibhavbsharma/repos","events_url":"https://api.github.com/users/vaibhavbsharma/events{/privacy}","received_events_url":"https://api.github.com/users/vaibhavbsharma/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-09-30T16:37:28Z","updated_at":"2018-10-02T05:44:18Z","closed_at":null,"author_association":"OWNER","body":"While I was working on the Contract Discovery project, I made a sample example and tried to run veritesting on it. The program, \"ExtraSimplePad\", describes a simple pad functionality that is attached to a rocket where the user pushes on buttons, \"start\" then \"launch\" to turn ignition on and in turn launch the rocket. If \"empty signal\" was received after \"start\" button is pushed for 5 time slots, then reset is done to the state of the pad. \r\n\r\nThe program is composed of many nested if statements that have no SPFCases, so I expected that we'd be able to swallow the complex nested if statements, but instead we didn't do that, instead we ended up only veritesting small regions. We had a problem recognizing the large outer if(s).  I am sorry I didn't go into more depth as of why this this happening. \r\n\r\nThe message we print out is:\r\n```\r\nUnable to create subregion.  Serious error. Reason: java.lang.IllegalArgumentException: translateTruncatedFinalBlock: unsupported constant type\r\ntranslateTruncatedFinalBlock: unsupported constant type\r\n```\r\nThe problem happened while trying to summaries from block 11 to 41 in the cfg that I am attaching here.\r\n[ExtraSimplePad.pdf](https://github.com/sohah/VeritestingTransformations/files/2431743/ExtraSimplePad.pdf)\r\n\r\nThe program is [https://github.com/sohah/ContractDiscovery/blob/master/src/examples/ExtraSimplePad.java](here) and the jpf file is [https://github.com/sohah/ContractDiscovery/blob/master/src/examples/ExtraSimplePad.jpf](here).\r\n"},"comment":{"url":"https://api.github.com/repos/sohah/VeritestingTransformations/issues/comments/426155805","html_url":"https://github.com/sohah/VeritestingTransformations/issues/15#issuecomment-426155805","issue_url":"https://api.github.com/repos/sohah/VeritestingTransformations/issues/15","id":426155805,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjE1NTgwNQ==","user":{"login":"mwwhalen","id":5216954,"node_id":"MDQ6VXNlcjUyMTY5NTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/5216954?v=4","gravatar_id":"","url":"https://api.github.com/users/mwwhalen","html_url":"https://github.com/mwwhalen","followers_url":"https://api.github.com/users/mwwhalen/followers","following_url":"https://api.github.com/users/mwwhalen/following{/other_user}","gists_url":"https://api.github.com/users/mwwhalen/gists{/gist_id}","starred_url":"https://api.github.com/users/mwwhalen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwwhalen/subscriptions","organizations_url":"https://api.github.com/users/mwwhalen/orgs","repos_url":"https://api.github.com/users/mwwhalen/repos","events_url":"https://api.github.com/users/mwwhalen/events{/privacy}","received_events_url":"https://api.github.com/users/mwwhalen/received_events","type":"User","site_admin":false},"created_at":"2018-10-02T05:44:18Z","updated_at":"2018-10-02T05:44:18Z","author_association":"COLLABORATOR","body":"I took a look and this exception is being raised in convertWalaVar:\n\npublic static Expression convertWalaVar(IR ir, int ssaVar) {\n    SymbolTable symtab = ir.getSymbolTable();\n    if (symtab.isConstant(ssaVar)) {\n        Object val = symtab.getConstantValue(ssaVar);\n        if (val instanceof Boolean) {\n            return new IntConstant(val.equals(Boolean.TRUE) ? 1 : 0);\n        } else if (val instanceof Integer) {\n            return new IntConstant((Integer)val);\n        } else if (val instanceof Double) {\n            return new RealConstant((Double)val);\n        } else if (val instanceof String) {\n            return new StringConstantGreen((String)val);\n        } else {\n            throw new\nIllegalArgumentException(\"translateTruncatedFinalBlock: unsupported\nconstant type\");\n        }\n    } else {\n        return new WalaVarExpr(ssaVar);\n    }\n}\n\nSo in this example we have an enum constant and my code doesn't yet know\nhow to handle enumeration constants :).  At least the error code was\ndescriptive.  We can talk about this tomorrow; it should be easy to fix.\n\nMike\n\nOn Mon, Oct 1, 2018 at 11:28 PM Michael Whalen <mwwhalen@umn.edu> wrote:\n\n> I had reviews due for FTSCS and today is also the submission deadline for\n> ICSE SEIP, so I am just now taking a look at this.  Sorry :(.  Will try to\n> get back to you soon!\n>\n> Mike\n>\n>\n>\n> On Mon, Oct 1, 2018 at 10:00 PM sohah <notifications@github.com> wrote:\n>\n>> I think this is because of the function defined to throw exceptions. I\n>> can see the CFG with much more structured/expected graph with no exception\n>> edges, but we still raise the \"serious\" error above. We aren't crashing or\n>> anything, it is just a message during translation.\n>> I am attaching here a simplified code and cfg, that also contains the\n>> same error.\n>> ir.pdf\n>> <https://github.com/sohah/VeritestingTransformations/files/2436319/ir.pdf>\n>>\n>> java_jpfFiles.zip\n>> <https://github.com/sohah/VeritestingTransformations/files/2436326/java_jpfFiles.zip>\n>>\n>> —\n>> You are receiving this because you were assigned.\n>> Reply to this email directly, view it on GitHub\n>> <https://github.com/sohah/VeritestingTransformations/issues/15#issuecomment-426131788>,\n>> or mute the thread\n>> <https://github.com/notifications/unsubscribe-auth/AE-auumV4j1lT7Pn3D-Mt0stRXogRq1Mks5ugtbQgaJpZM4XBC4F>\n>> .\n>>\n>\n>\n> --\n> Michael Whalen\n> Adjunct Professor, University of Minnesota Software Engineering Center\n> (UMSEC)\n> 200 Union St. 4-192\n> Minneapolis, MN 55455\n> Office: 612-624-5130\n> Cell: 651-442-8834\n>\n\n\n-- \nMichael Whalen\nAdjunct Professor, University of Minnesota Software Engineering Center\n(UMSEC)\n200 Union St. 4-192\nMinneapolis, MN 55455\nOffice: 612-624-5130\nCell: 651-442-8834\n"}}
{"actor":{"display_login":"mwwhalen"}}