{"action":"opened","number":197,"pull_request":{"url":"https://api.github.com/repos/FStarLang/FStar/pulls/197","id":32859733,"html_url":"https://github.com/FStarLang/FStar/pull/197","diff_url":"https://github.com/FStarLang/FStar/pull/197.diff","patch_url":"https://github.com/FStarLang/FStar/pull/197.patch","issue_url":"https://api.github.com/repos/FStarLang/FStar/issues/197","number":197,"state":"open","locked":false,"title":"Tentative fix for #186","user":{"login":"catalin-hritcu","id":5850655,"avatar_url":"https://avatars.githubusercontent.com/u/5850655?v=3","gravatar_id":"","url":"https://api.github.com/users/catalin-hritcu","html_url":"https://github.com/catalin-hritcu","followers_url":"https://api.github.com/users/catalin-hritcu/followers","following_url":"https://api.github.com/users/catalin-hritcu/following{/other_user}","gists_url":"https://api.github.com/users/catalin-hritcu/gists{/gist_id}","starred_url":"https://api.github.com/users/catalin-hritcu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catalin-hritcu/subscriptions","organizations_url":"https://api.github.com/users/catalin-hritcu/orgs","repos_url":"https://api.github.com/users/catalin-hritcu/repos","events_url":"https://api.github.com/users/catalin-hritcu/events{/privacy}","received_events_url":"https://api.github.com/users/catalin-hritcu/received_events","type":"User","site_admin":false},"body":"When debugging #186 with Simon, we noticed that `Tc.Recheck.recompute_typ head` was called on a beta redex and clearly couldn't deal with the situation and returned `Typ_unknown`, something that the encoding can't deal with at all. As a tentative fix we added a call to `whnf_e env head` at the beginning of the `Exp_app(head ...` case of `encode_exp`. This seems to fix all instances we had for #186 without causing problems with the other tests. We didn't check whether it impacts timing though, and also don't know if this is the best way to fix the problem.","created_at":"2015-04-08T13:30:25Z","updated_at":"2015-04-08T13:30:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FStarLang/FStar/pulls/197/commits","review_comments_url":"https://api.github.com/repos/FStarLang/FStar/pulls/197/comments","review_comment_url":"https://api.github.com/repos/FStarLang/FStar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FStarLang/FStar/issues/197/comments","statuses_url":"https://api.github.com/repos/FStarLang/FStar/statuses/6529066f6c467dbb38a10563f8da2bd852da9f57","head":{"label":"FStarLang:tentative-fix-for-186","ref":"tentative-fix-for-186","sha":"6529066f6c467dbb38a10563f8da2bd852da9f57","user":{"login":"FStarLang","id":7689927,"avatar_url":"https://avatars.githubusercontent.com/u/7689927?v=3","gravatar_id":"","url":"https://api.github.com/users/FStarLang","html_url":"https://github.com/FStarLang","followers_url":"https://api.github.com/users/FStarLang/followers","following_url":"https://api.github.com/users/FStarLang/following{/other_user}","gists_url":"https://api.github.com/users/FStarLang/gists{/gist_id}","starred_url":"https://api.github.com/users/FStarLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FStarLang/subscriptions","organizations_url":"https://api.github.com/users/FStarLang/orgs","repos_url":"https://api.github.com/users/FStarLang/repos","events_url":"https://api.github.com/users/FStarLang/events{/privacy}","received_events_url":"https://api.github.com/users/FStarLang/received_events","type":"Organization","site_admin":false},"repo":{"id":18411972,"name":"FStar","full_name":"FStarLang/FStar","owner":{"login":"FStarLang","id":7689927,"avatar_url":"https://avatars.githubusercontent.com/u/7689927?v=3","gravatar_id":"","url":"https://api.github.com/users/FStarLang","html_url":"https://github.com/FStarLang","followers_url":"https://api.github.com/users/FStarLang/followers","following_url":"https://api.github.com/users/FStarLang/following{/other_user}","gists_url":"https://api.github.com/users/FStarLang/gists{/gist_id}","starred_url":"https://api.github.com/users/FStarLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FStarLang/subscriptions","organizations_url":"https://api.github.com/users/FStarLang/orgs","repos_url":"https://api.github.com/users/FStarLang/repos","events_url":"https://api.github.com/users/FStarLang/events{/privacy}","received_events_url":"https://api.github.com/users/FStarLang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FStarLang/FStar","description":"An ML-like language with a type system for program verification","fork":false,"url":"https://api.github.com/repos/FStarLang/FStar","forks_url":"https://api.github.com/repos/FStarLang/FStar/forks","keys_url":"https://api.github.com/repos/FStarLang/FStar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FStarLang/FStar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FStarLang/FStar/teams","hooks_url":"https://api.github.com/repos/FStarLang/FStar/hooks","issue_events_url":"https://api.github.com/repos/FStarLang/FStar/issues/events{/number}","events_url":"https://api.github.com/repos/FStarLang/FStar/events","assignees_url":"https://api.github.com/repos/FStarLang/FStar/assignees{/user}","branches_url":"https://api.github.com/repos/FStarLang/FStar/branches{/branch}","tags_url":"https://api.github.com/repos/FStarLang/FStar/tags","blobs_url":"https://api.github.com/repos/FStarLang/FStar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FStarLang/FStar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FStarLang/FStar/git/refs{/sha}","trees_url":"https://api.github.com/repos/FStarLang/FStar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FStarLang/FStar/statuses/{sha}","languages_url":"https://api.github.com/repos/FStarLang/FStar/languages","stargazers_url":"https://api.github.com/repos/FStarLang/FStar/stargazers","contributors_url":"https://api.github.com/repos/FStarLang/FStar/contributors","subscribers_url":"https://api.github.com/repos/FStarLang/FStar/subscribers","subscription_url":"https://api.github.com/repos/FStarLang/FStar/subscription","commits_url":"https://api.github.com/repos/FStarLang/FStar/commits{/sha}","git_commits_url":"https://api.github.com/repos/FStarLang/FStar/git/commits{/sha}","comments_url":"https://api.github.com/repos/FStarLang/FStar/comments{/number}","issue_comment_url":"https://api.github.com/repos/FStarLang/FStar/issues/comments{/number}","contents_url":"https://api.github.com/repos/FStarLang/FStar/contents/{+path}","compare_url":"https://api.github.com/repos/FStarLang/FStar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FStarLang/FStar/merges","archive_url":"https://api.github.com/repos/FStarLang/FStar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FStarLang/FStar/downloads","issues_url":"https://api.github.com/repos/FStarLang/FStar/issues{/number}","pulls_url":"https://api.github.com/repos/FStarLang/FStar/pulls{/number}","milestones_url":"https://api.github.com/repos/FStarLang/FStar/milestones{/number}","notifications_url":"https://api.github.com/repos/FStarLang/FStar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FStarLang/FStar/labels{/name}","releases_url":"https://api.github.com/repos/FStarLang/FStar/releases{/id}","created_at":"2014-04-03T17:32:49Z","updated_at":"2015-04-08T13:14:39Z","pushed_at":"2015-04-08T13:20:33Z","git_url":"git://github.com/FStarLang/FStar.git","ssh_url":"git@github.com:FStarLang/FStar.git","clone_url":"https://github.com/FStarLang/FStar.git","svn_url":"https://github.com/FStarLang/FStar","homepage":null,"size":48683,"stargazers_count":254,"watchers_count":254,"language":"F#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":96,"forks":15,"open_issues":96,"watchers":254,"default_branch":"master"}},"base":{"label":"FStarLang:master","ref":"master","sha":"5995e5df20ca19bc50e55f1e61154bddf6054e42","user":{"login":"FStarLang","id":7689927,"avatar_url":"https://avatars.githubusercontent.com/u/7689927?v=3","gravatar_id":"","url":"https://api.github.com/users/FStarLang","html_url":"https://github.com/FStarLang","followers_url":"https://api.github.com/users/FStarLang/followers","following_url":"https://api.github.com/users/FStarLang/following{/other_user}","gists_url":"https://api.github.com/users/FStarLang/gists{/gist_id}","starred_url":"https://api.github.com/users/FStarLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FStarLang/subscriptions","organizations_url":"https://api.github.com/users/FStarLang/orgs","repos_url":"https://api.github.com/users/FStarLang/repos","events_url":"https://api.github.com/users/FStarLang/events{/privacy}","received_events_url":"https://api.github.com/users/FStarLang/received_events","type":"Organization","site_admin":false},"repo":{"id":18411972,"name":"FStar","full_name":"FStarLang/FStar","owner":{"login":"FStarLang","id":7689927,"avatar_url":"https://avatars.githubusercontent.com/u/7689927?v=3","gravatar_id":"","url":"https://api.github.com/users/FStarLang","html_url":"https://github.com/FStarLang","followers_url":"https://api.github.com/users/FStarLang/followers","following_url":"https://api.github.com/users/FStarLang/following{/other_user}","gists_url":"https://api.github.com/users/FStarLang/gists{/gist_id}","starred_url":"https://api.github.com/users/FStarLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FStarLang/subscriptions","organizations_url":"https://api.github.com/users/FStarLang/orgs","repos_url":"https://api.github.com/users/FStarLang/repos","events_url":"https://api.github.com/users/FStarLang/events{/privacy}","received_events_url":"https://api.github.com/users/FStarLang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FStarLang/FStar","description":"An ML-like language with a type system for program verification","fork":false,"url":"https://api.github.com/repos/FStarLang/FStar","forks_url":"https://api.github.com/repos/FStarLang/FStar/forks","keys_url":"https://api.github.com/repos/FStarLang/FStar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FStarLang/FStar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FStarLang/FStar/teams","hooks_url":"https://api.github.com/repos/FStarLang/FStar/hooks","issue_events_url":"https://api.github.com/repos/FStarLang/FStar/issues/events{/number}","events_url":"https://api.github.com/repos/FStarLang/FStar/events","assignees_url":"https://api.github.com/repos/FStarLang/FStar/assignees{/user}","branches_url":"https://api.github.com/repos/FStarLang/FStar/branches{/branch}","tags_url":"https://api.github.com/repos/FStarLang/FStar/tags","blobs_url":"https://api.github.com/repos/FStarLang/FStar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FStarLang/FStar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FStarLang/FStar/git/refs{/sha}","trees_url":"https://api.github.com/repos/FStarLang/FStar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FStarLang/FStar/statuses/{sha}","languages_url":"https://api.github.com/repos/FStarLang/FStar/languages","stargazers_url":"https://api.github.com/repos/FStarLang/FStar/stargazers","contributors_url":"https://api.github.com/repos/FStarLang/FStar/contributors","subscribers_url":"https://api.github.com/repos/FStarLang/FStar/subscribers","subscription_url":"https://api.github.com/repos/FStarLang/FStar/subscription","commits_url":"https://api.github.com/repos/FStarLang/FStar/commits{/sha}","git_commits_url":"https://api.github.com/repos/FStarLang/FStar/git/commits{/sha}","comments_url":"https://api.github.com/repos/FStarLang/FStar/comments{/number}","issue_comment_url":"https://api.github.com/repos/FStarLang/FStar/issues/comments{/number}","contents_url":"https://api.github.com/repos/FStarLang/FStar/contents/{+path}","compare_url":"https://api.github.com/repos/FStarLang/FStar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FStarLang/FStar/merges","archive_url":"https://api.github.com/repos/FStarLang/FStar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FStarLang/FStar/downloads","issues_url":"https://api.github.com/repos/FStarLang/FStar/issues{/number}","pulls_url":"https://api.github.com/repos/FStarLang/FStar/pulls{/number}","milestones_url":"https://api.github.com/repos/FStarLang/FStar/milestones{/number}","notifications_url":"https://api.github.com/repos/FStarLang/FStar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FStarLang/FStar/labels{/name}","releases_url":"https://api.github.com/repos/FStarLang/FStar/releases{/id}","created_at":"2014-04-03T17:32:49Z","updated_at":"2015-04-08T13:14:39Z","pushed_at":"2015-04-08T13:20:33Z","git_url":"git://github.com/FStarLang/FStar.git","ssh_url":"git@github.com:FStarLang/FStar.git","clone_url":"https://github.com/FStarLang/FStar.git","svn_url":"https://github.com/FStarLang/FStar","homepage":null,"size":48683,"stargazers_count":254,"watchers_count":254,"language":"F#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":96,"forks":15,"open_issues":96,"watchers":254,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FStarLang/FStar/pulls/197"},"html":{"href":"https://github.com/FStarLang/FStar/pull/197"},"issue":{"href":"https://api.github.com/repos/FStarLang/FStar/issues/197"},"comments":{"href":"https://api.github.com/repos/FStarLang/FStar/issues/197/comments"},"review_comments":{"href":"https://api.github.com/repos/FStarLang/FStar/pulls/197/comments"},"review_comment":{"href":"https://api.github.com/repos/FStarLang/FStar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FStarLang/FStar/pulls/197/commits"},"statuses":{"href":"https://api.github.com/repos/FStarLang/FStar/statuses/6529066f6c467dbb38a10563f8da2bd852da9f57"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":1,"changed_files":1}}