{"action":"created","issue":{"url":"https://api.github.com/repos/sjiang1/funcwatch/issues/17","repository_url":"https://api.github.com/repos/sjiang1/funcwatch","labels_url":"https://api.github.com/repos/sjiang1/funcwatch/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/sjiang1/funcwatch/issues/17/comments","events_url":"https://api.github.com/repos/sjiang1/funcwatch/issues/17/events","html_url":"https://github.com/sjiang1/funcwatch/issues/17","id":176141498,"number":17,"title":"test_recursive_0: the input values changed after the call","user":{"login":"sjiang1","id":2203934,"avatar_url":"https://avatars.githubusercontent.com/u/2203934?v=3","gravatar_id":"","url":"https://api.github.com/users/sjiang1","html_url":"https://github.com/sjiang1","followers_url":"https://api.github.com/users/sjiang1/followers","following_url":"https://api.github.com/users/sjiang1/following{/other_user}","gists_url":"https://api.github.com/users/sjiang1/gists{/gist_id}","starred_url":"https://api.github.com/users/sjiang1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjiang1/subscriptions","organizations_url":"https://api.github.com/users/sjiang1/orgs","repos_url":"https://api.github.com/users/sjiang1/repos","events_url":"https://api.github.com/users/sjiang1/events{/privacy}","received_events_url":"https://api.github.com/users/sjiang1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sjiang1/funcwatch/labels/bug","name":"bug","color":"ee0701"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/sjiang1/funcwatch/milestones/3","html_url":"https://github.com/sjiang1/funcwatch/milestones/Support%20Recursive%20Function%20Calls","labels_url":"https://api.github.com/repos/sjiang1/funcwatch/milestones/3/labels","id":1987472,"number":3,"title":"Support Recursive Function Calls","description":"","creator":{"login":"sjiang1","id":2203934,"avatar_url":"https://avatars.githubusercontent.com/u/2203934?v=3","gravatar_id":"","url":"https://api.github.com/users/sjiang1","html_url":"https://github.com/sjiang1","followers_url":"https://api.github.com/users/sjiang1/followers","following_url":"https://api.github.com/users/sjiang1/following{/other_user}","gists_url":"https://api.github.com/users/sjiang1/gists{/gist_id}","starred_url":"https://api.github.com/users/sjiang1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjiang1/subscriptions","organizations_url":"https://api.github.com/users/sjiang1/orgs","repos_url":"https://api.github.com/users/sjiang1/repos","events_url":"https://api.github.com/users/sjiang1/events{/privacy}","received_events_url":"https://api.github.com/users/sjiang1/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":2,"state":"open","created_at":"2016-09-06T21:51:35Z","updated_at":"2016-09-12T15:44:23Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-09-10T00:19:55Z","updated_at":"2016-09-12T15:44:23Z","closed_at":"2016-09-12T15:44:23Z","body":"The logged input value should not change. but in this test, the logged input value changed after the call.\r\n\r\nThe logged input value does not change for the last call of function foo. But it changes for the first and second calls of function foo.\r\n\r\nGDB shows the addresses of the input parameters are not changed. Next thing is to check the assembly code of the test_recursive_0"},"comment":{"url":"https://api.github.com/repos/sjiang1/funcwatch/issues/comments/246391079","html_url":"https://github.com/sjiang1/funcwatch/issues/17#issuecomment-246391079","issue_url":"https://api.github.com/repos/sjiang1/funcwatch/issues/17","id":246391079,"user":{"login":"sjiang1","id":2203934,"avatar_url":"https://avatars.githubusercontent.com/u/2203934?v=3","gravatar_id":"","url":"https://api.github.com/users/sjiang1","html_url":"https://github.com/sjiang1","followers_url":"https://api.github.com/users/sjiang1/followers","following_url":"https://api.github.com/users/sjiang1/following{/other_user}","gists_url":"https://api.github.com/users/sjiang1/gists{/gist_id}","starred_url":"https://api.github.com/users/sjiang1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjiang1/subscriptions","organizations_url":"https://api.github.com/users/sjiang1/orgs","repos_url":"https://api.github.com/users/sjiang1/repos","events_url":"https://api.github.com/users/sjiang1/events{/privacy}","received_events_url":"https://api.github.com/users/sjiang1/received_events","type":"User","site_admin":false},"created_at":"2016-09-12T15:44:23Z","updated_at":"2016-09-12T15:44:23Z","body":"`int foo(int i){\r\n  if (i > 0){\r\n    i = i -1;\r\n    int j = foo(i);\r\n    return i;\r\n  }\r\n  return 10;\r\n}\r\n`\r\nAttached the assembly code.\r\n[assembly.pdf](https://github.com/sjiang1/funcwatch/files/467702/assembly.pdf)\r\n\r\nThe input parameter will be changed after the function call, and the value should be discarded. We should do so in FuncWatch, too. \r\n--> new issue #18\r\n"}}
{"actor":{"display_login":"sjiang1"}}