{"action":"created","issue":{"url":"https://api.github.com/repos/diffblue/cbmc/issues/2057","repository_url":"https://api.github.com/repos/diffblue/cbmc","labels_url":"https://api.github.com/repos/diffblue/cbmc/issues/2057/labels{/name}","comments_url":"https://api.github.com/repos/diffblue/cbmc/issues/2057/comments","events_url":"https://api.github.com/repos/diffblue/cbmc/issues/2057/events","html_url":"https://github.com/diffblue/cbmc/issues/2057","id":314408166,"number":2057,"title":"An unexpected verification result.","user":{"login":"muchang","id":3355874,"avatar_url":"https://avatars1.githubusercontent.com/u/3355874?v=4","gravatar_id":"","url":"https://api.github.com/users/muchang","html_url":"https://github.com/muchang","followers_url":"https://api.github.com/users/muchang/followers","following_url":"https://api.github.com/users/muchang/following{/other_user}","gists_url":"https://api.github.com/users/muchang/gists{/gist_id}","starred_url":"https://api.github.com/users/muchang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muchang/subscriptions","organizations_url":"https://api.github.com/users/muchang/orgs","repos_url":"https://api.github.com/users/muchang/repos","events_url":"https://api.github.com/users/muchang/events{/privacy}","received_events_url":"https://api.github.com/users/muchang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-15T11:41:19Z","updated_at":"2018-04-15T16:45:47Z","closed_at":null,"author_association":"NONE","body":"```\r\nvoid main(){\r\n  int arg[5];\r\n  int i = 0;\r\n  while (arg[i] != 0) {\r\n    i = i + 1;\r\n  }\r\n  if (arg[i] != 0) {\r\n    assert(0);\r\n  }\r\n}\r\n```\r\nThe `assert(0);` is infeasiable in this case, while the CBMC gives FALSE verification result which means `assert(0);` is feasible.  I ran CBMC-5.6 with the command \"./cbmc ~/simple_replace_172.c --unwind 6 --depth 350 -function main --trace\".  I would like to know if I ran CBMC with the wrong command line arguments so that I got the unexpected verification result?"},"comment":{"url":"https://api.github.com/repos/diffblue/cbmc/issues/comments/381420403","html_url":"https://github.com/diffblue/cbmc/issues/2057#issuecomment-381420403","issue_url":"https://api.github.com/repos/diffblue/cbmc/issues/2057","id":381420403,"user":{"login":"muchang","id":3355874,"avatar_url":"https://avatars1.githubusercontent.com/u/3355874?v=4","gravatar_id":"","url":"https://api.github.com/users/muchang","html_url":"https://github.com/muchang","followers_url":"https://api.github.com/users/muchang/followers","following_url":"https://api.github.com/users/muchang/following{/other_user}","gists_url":"https://api.github.com/users/muchang/gists{/gist_id}","starred_url":"https://api.github.com/users/muchang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muchang/subscriptions","organizations_url":"https://api.github.com/users/muchang/orgs","repos_url":"https://api.github.com/users/muchang/repos","events_url":"https://api.github.com/users/muchang/events{/privacy}","received_events_url":"https://api.github.com/users/muchang/received_events","type":"User","site_admin":false},"created_at":"2018-04-15T16:45:47Z","updated_at":"2018-04-15T16:45:47Z","author_association":"NONE","body":"Thank you so much for your reply. It is very helpful to me.\r\nActually, CBMC works well on a simpler case, for example:\r\n```\r\n void main(){\r\n   int a = 0;\r\n   while(a <= 0) {a--;}\r\n   if(a <= 0)\r\n       assert(0);\r\n }\r\n```\r\nIn this case, CBMC-5.6 with the command `./cbmc ~/simple_replace_172.c --unwind 6 --depth 350 -function main --trace` can give the TRUE verification result which means the `assert(0)` cannot be reached. However, I think CBMC should give the same verification results on this one and the prior one.  I would like to know why the difference occurs? \r\n\r\n"}}
{"actor":{"display_login":"muchang"}}