{"action":"opened","number":1183,"pull_request":{"url":"https://api.github.com/repos/leanprover/lean/pulls/1183","id":92648603,"html_url":"https://github.com/leanprover/lean/pull/1183","diff_url":"https://github.com/leanprover/lean/pull/1183.diff","patch_url":"https://github.com/leanprover/lean/pull/1183.patch","issue_url":"https://api.github.com/repos/leanprover/lean/issues/1183","number":1183,"state":"open","locked":false,"title":"Various debugging fixes","user":{"login":"gebner","id":313929,"avatar_url":"https://avatars.githubusercontent.com/u/313929?v=3","gravatar_id":"","url":"https://api.github.com/users/gebner","html_url":"https://github.com/gebner","followers_url":"https://api.github.com/users/gebner/followers","following_url":"https://api.github.com/users/gebner/following{/other_user}","gists_url":"https://api.github.com/users/gebner/gists{/gist_id}","starred_url":"https://api.github.com/users/gebner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gebner/subscriptions","organizations_url":"https://api.github.com/users/gebner/orgs","repos_url":"https://api.github.com/users/gebner/repos","events_url":"https://api.github.com/users/gebner/events{/privacy}","received_events_url":"https://api.github.com/users/gebner/received_events","type":"User","site_admin":false},"body":"As observed by @Kha in #1182, the functions `pp` and `pp_detail` got accidentally removed.  This PR brings them back, as well as other debugging goodies.\r\n\r\nPrinting `expr` objects now resolves the right subtype according to the kind of the expression, and shows all the fields (look at the end, and also m_kind is casted into the enum type for viewing pleasure):\r\n```\r\n(gdb) p fn\r\n$3 = lean::expr_const = {\r\n  m_flags = {\r\n    <std::__atomic_base<unsigned char>> = {\r\n      static _S_alignment = 1, \r\n      _M_i = 0 '\\000'\r\n    }, <No data fields>},\r\n  m_kind = lean::expr_kind::Constant,\r\n  m_has_expr_mv = 0,\r\n  m_has_univ_mv = 0,\r\n  m_has_local = 0,\r\n  m_has_param_univ = 0,\r\n  m_hash = 1082791831,\r\n  m_hash_alloc = 19348,\r\n  m_tag = {\r\n    <std::__atomic_base<unsigned int>> = {\r\n      static _S_alignment = 4, \r\n      _M_i = 4294967295\r\n    }, <No data fields>},\r\n  m_rc = {\r\n    <std::__atomic_base<unsigned int>> = {\r\n      static _S_alignment = 4, \r\n      _M_i = 17\r\n    }, <No data fields>},\r\n  m_name = 'pos_num'.'succ'.'_main',\r\n  m_levels = lean::list\r\n}\r\n```","created_at":"2016-11-07T19:33:41Z","updated_at":"2016-11-07T19:33:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/leanprover/lean/pulls/1183/commits","review_comments_url":"https://api.github.com/repos/leanprover/lean/pulls/1183/comments","review_comment_url":"https://api.github.com/repos/leanprover/lean/pulls/comments{/number}","comments_url":"https://api.github.com/repos/leanprover/lean/issues/1183/comments","statuses_url":"https://api.github.com/repos/leanprover/lean/statuses/ec21cc1d0085e3d8c45023f565495fcf882b9cae","head":{"label":"gebner:debugging","ref":"debugging","sha":"ec21cc1d0085e3d8c45023f565495fcf882b9cae","user":{"login":"gebner","id":313929,"avatar_url":"https://avatars.githubusercontent.com/u/313929?v=3","gravatar_id":"","url":"https://api.github.com/users/gebner","html_url":"https://github.com/gebner","followers_url":"https://api.github.com/users/gebner/followers","following_url":"https://api.github.com/users/gebner/following{/other_user}","gists_url":"https://api.github.com/users/gebner/gists{/gist_id}","starred_url":"https://api.github.com/users/gebner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gebner/subscriptions","organizations_url":"https://api.github.com/users/gebner/orgs","repos_url":"https://api.github.com/users/gebner/repos","events_url":"https://api.github.com/users/gebner/events{/privacy}","received_events_url":"https://api.github.com/users/gebner/received_events","type":"User","site_admin":false},"repo":{"id":49765437,"name":"lean","full_name":"gebner/lean","owner":{"login":"gebner","id":313929,"avatar_url":"https://avatars.githubusercontent.com/u/313929?v=3","gravatar_id":"","url":"https://api.github.com/users/gebner","html_url":"https://github.com/gebner","followers_url":"https://api.github.com/users/gebner/followers","following_url":"https://api.github.com/users/gebner/following{/other_user}","gists_url":"https://api.github.com/users/gebner/gists{/gist_id}","starred_url":"https://api.github.com/users/gebner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gebner/subscriptions","organizations_url":"https://api.github.com/users/gebner/orgs","repos_url":"https://api.github.com/users/gebner/repos","events_url":"https://api.github.com/users/gebner/events{/privacy}","received_events_url":"https://api.github.com/users/gebner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gebner/lean","description":"Lean Theorem Prover","fork":true,"url":"https://api.github.com/repos/gebner/lean","forks_url":"https://api.github.com/repos/gebner/lean/forks","keys_url":"https://api.github.com/repos/gebner/lean/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gebner/lean/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gebner/lean/teams","hooks_url":"https://api.github.com/repos/gebner/lean/hooks","issue_events_url":"https://api.github.com/repos/gebner/lean/issues/events{/number}","events_url":"https://api.github.com/repos/gebner/lean/events","assignees_url":"https://api.github.com/repos/gebner/lean/assignees{/user}","branches_url":"https://api.github.com/repos/gebner/lean/branches{/branch}","tags_url":"https://api.github.com/repos/gebner/lean/tags","blobs_url":"https://api.github.com/repos/gebner/lean/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gebner/lean/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gebner/lean/git/refs{/sha}","trees_url":"https://api.github.com/repos/gebner/lean/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gebner/lean/statuses/{sha}","languages_url":"https://api.github.com/repos/gebner/lean/languages","stargazers_url":"https://api.github.com/repos/gebner/lean/stargazers","contributors_url":"https://api.github.com/repos/gebner/lean/contributors","subscribers_url":"https://api.github.com/repos/gebner/lean/subscribers","subscription_url":"https://api.github.com/repos/gebner/lean/subscription","commits_url":"https://api.github.com/repos/gebner/lean/commits{/sha}","git_commits_url":"https://api.github.com/repos/gebner/lean/git/commits{/sha}","comments_url":"https://api.github.com/repos/gebner/lean/comments{/number}","issue_comment_url":"https://api.github.com/repos/gebner/lean/issues/comments{/number}","contents_url":"https://api.github.com/repos/gebner/lean/contents/{+path}","compare_url":"https://api.github.com/repos/gebner/lean/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gebner/lean/merges","archive_url":"https://api.github.com/repos/gebner/lean/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gebner/lean/downloads","issues_url":"https://api.github.com/repos/gebner/lean/issues{/number}","pulls_url":"https://api.github.com/repos/gebner/lean/pulls{/number}","milestones_url":"https://api.github.com/repos/gebner/lean/milestones{/number}","notifications_url":"https://api.github.com/repos/gebner/lean/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gebner/lean/labels{/name}","releases_url":"https://api.github.com/repos/gebner/lean/releases{/id}","deployments_url":"https://api.github.com/repos/gebner/lean/deployments","created_at":"2016-01-16T08:18:19Z","updated_at":"2016-01-16T08:18:24Z","pushed_at":"2016-11-07T19:22:41Z","git_url":"git://github.com/gebner/lean.git","ssh_url":"git@github.com:gebner/lean.git","clone_url":"https://github.com/gebner/lean.git","svn_url":"https://github.com/gebner/lean","homepage":"http://leanprover.github.io/","size":41174,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"leanprover:lean3","ref":"lean3","sha":"1cee5fbfea019c6ea3970f40de69de535002575c","user":{"login":"leanprover","id":7233018,"avatar_url":"https://avatars.githubusercontent.com/u/7233018?v=3","gravatar_id":"","url":"https://api.github.com/users/leanprover","html_url":"https://github.com/leanprover","followers_url":"https://api.github.com/users/leanprover/followers","following_url":"https://api.github.com/users/leanprover/following{/other_user}","gists_url":"https://api.github.com/users/leanprover/gists{/gist_id}","starred_url":"https://api.github.com/users/leanprover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leanprover/subscriptions","organizations_url":"https://api.github.com/users/leanprover/orgs","repos_url":"https://api.github.com/users/leanprover/repos","events_url":"https://api.github.com/users/leanprover/events{/privacy}","received_events_url":"https://api.github.com/users/leanprover/received_events","type":"Organization","site_admin":false},"repo":{"id":11463670,"name":"lean","full_name":"leanprover/lean","owner":{"login":"leanprover","id":7233018,"avatar_url":"https://avatars.githubusercontent.com/u/7233018?v=3","gravatar_id":"","url":"https://api.github.com/users/leanprover","html_url":"https://github.com/leanprover","followers_url":"https://api.github.com/users/leanprover/followers","following_url":"https://api.github.com/users/leanprover/following{/other_user}","gists_url":"https://api.github.com/users/leanprover/gists{/gist_id}","starred_url":"https://api.github.com/users/leanprover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leanprover/subscriptions","organizations_url":"https://api.github.com/users/leanprover/orgs","repos_url":"https://api.github.com/users/leanprover/repos","events_url":"https://api.github.com/users/leanprover/events{/privacy}","received_events_url":"https://api.github.com/users/leanprover/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/leanprover/lean","description":"Lean Theorem Prover","fork":false,"url":"https://api.github.com/repos/leanprover/lean","forks_url":"https://api.github.com/repos/leanprover/lean/forks","keys_url":"https://api.github.com/repos/leanprover/lean/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leanprover/lean/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leanprover/lean/teams","hooks_url":"https://api.github.com/repos/leanprover/lean/hooks","issue_events_url":"https://api.github.com/repos/leanprover/lean/issues/events{/number}","events_url":"https://api.github.com/repos/leanprover/lean/events","assignees_url":"https://api.github.com/repos/leanprover/lean/assignees{/user}","branches_url":"https://api.github.com/repos/leanprover/lean/branches{/branch}","tags_url":"https://api.github.com/repos/leanprover/lean/tags","blobs_url":"https://api.github.com/repos/leanprover/lean/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leanprover/lean/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leanprover/lean/git/refs{/sha}","trees_url":"https://api.github.com/repos/leanprover/lean/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leanprover/lean/statuses/{sha}","languages_url":"https://api.github.com/repos/leanprover/lean/languages","stargazers_url":"https://api.github.com/repos/leanprover/lean/stargazers","contributors_url":"https://api.github.com/repos/leanprover/lean/contributors","subscribers_url":"https://api.github.com/repos/leanprover/lean/subscribers","subscription_url":"https://api.github.com/repos/leanprover/lean/subscription","commits_url":"https://api.github.com/repos/leanprover/lean/commits{/sha}","git_commits_url":"https://api.github.com/repos/leanprover/lean/git/commits{/sha}","comments_url":"https://api.github.com/repos/leanprover/lean/comments{/number}","issue_comment_url":"https://api.github.com/repos/leanprover/lean/issues/comments{/number}","contents_url":"https://api.github.com/repos/leanprover/lean/contents/{+path}","compare_url":"https://api.github.com/repos/leanprover/lean/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leanprover/lean/merges","archive_url":"https://api.github.com/repos/leanprover/lean/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leanprover/lean/downloads","issues_url":"https://api.github.com/repos/leanprover/lean/issues{/number}","pulls_url":"https://api.github.com/repos/leanprover/lean/pulls{/number}","milestones_url":"https://api.github.com/repos/leanprover/lean/milestones{/number}","notifications_url":"https://api.github.com/repos/leanprover/lean/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leanprover/lean/labels{/name}","releases_url":"https://api.github.com/repos/leanprover/lean/releases{/id}","deployments_url":"https://api.github.com/repos/leanprover/lean/deployments","created_at":"2013-07-17T00:42:34Z","updated_at":"2016-11-07T03:48:38Z","pushed_at":"2016-11-07T18:09:40Z","git_url":"git://github.com/leanprover/lean.git","ssh_url":"git@github.com:leanprover/lean.git","clone_url":"https://github.com/leanprover/lean.git","svn_url":"https://github.com/leanprover/lean","homepage":"http://leanprover.github.io/","size":45233,"stargazers_count":488,"watchers_count":488,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":81,"mirror_url":null,"open_issues_count":39,"forks":81,"open_issues":39,"watchers":488,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/leanprover/lean/pulls/1183"},"html":{"href":"https://github.com/leanprover/lean/pull/1183"},"issue":{"href":"https://api.github.com/repos/leanprover/lean/issues/1183"},"comments":{"href":"https://api.github.com/repos/leanprover/lean/issues/1183/comments"},"review_comments":{"href":"https://api.github.com/repos/leanprover/lean/pulls/1183/comments"},"review_comment":{"href":"https://api.github.com/repos/leanprover/lean/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/leanprover/lean/pulls/1183/commits"},"statuses":{"href":"https://api.github.com/repos/leanprover/lean/statuses/ec21cc1d0085e3d8c45023f565495fcf882b9cae"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":6,"additions":85,"deletions":29,"changed_files":5}}
{"actor":{"display_login":"gebner"}}