{"action":"closed","issue":{"url":"https://api.github.com/repos/dreal/dreal3/issues/131","labels_url":"https://api.github.com/repos/dreal/dreal3/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/dreal/dreal3/issues/131/comments","events_url":"https://api.github.com/repos/dreal/dreal3/issues/131/events","html_url":"https://github.com/dreal/dreal3/issues/131","id":86346534,"number":131,"title":"Unknown term logic error (possibly from opensmt_mk_num)","user":{"login":"zenna","id":313946,"avatar_url":"https://avatars.githubusercontent.com/u/313946?v=3","gravatar_id":"","url":"https://api.github.com/users/zenna","html_url":"https://github.com/zenna","followers_url":"https://api.github.com/users/zenna/followers","following_url":"https://api.github.com/users/zenna/following{/other_user}","gists_url":"https://api.github.com/users/zenna/gists{/gist_id}","starred_url":"https://api.github.com/users/zenna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenna/subscriptions","organizations_url":"https://api.github.com/users/zenna/orgs","repos_url":"https://api.github.com/users/zenna/repos","events_url":"https://api.github.com/users/zenna/events{/privacy}","received_events_url":"https://api.github.com/users/zenna/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dreal/dreal3/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"soonhokong","id":403281,"avatar_url":"https://avatars.githubusercontent.com/u/403281?v=3","gravatar_id":"","url":"https://api.github.com/users/soonhokong","html_url":"https://github.com/soonhokong","followers_url":"https://api.github.com/users/soonhokong/followers","following_url":"https://api.github.com/users/soonhokong/following{/other_user}","gists_url":"https://api.github.com/users/soonhokong/gists{/gist_id}","starred_url":"https://api.github.com/users/soonhokong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soonhokong/subscriptions","organizations_url":"https://api.github.com/users/soonhokong/orgs","repos_url":"https://api.github.com/users/soonhokong/repos","events_url":"https://api.github.com/users/soonhokong/events{/privacy}","received_events_url":"https://api.github.com/users/soonhokong/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-06-08T21:55:46Z","updated_at":"2015-07-07T02:55:58Z","closed_at":"2015-07-07T02:55:58Z","body":"This code\r\n\r\n```julia\r\nctx = opensmt_mk_context(@compat UInt32(1))\r\nopensmt_set_precision(ctx, 0.00001)\r\nA = opensmt_mk_real_var( ctx, \"A\" , 0.0, 1.0)\r\nB = opensmt_mk_real_var( ctx, \"B\" , 0.0, 1.0)\r\n\r\nite = opensmt_mk_ite(ctx, opensmt_mk_gt(ctx, A, opensmt_mk_num(ctx, 0.4)),\r\n                          opensmt_mk_num(ctx, 0.3),\r\n                          opensmt_mk_num(ctx, 0.4))\r\neq = opensmt_mk_gt(ctx, B, ite)\r\nopensmt_assert( ctx, eq)\r\nres = opensmt_check( ctx );\r\nprintln(\"res is \", res == -1 ? \"unsat\" : \"sat\")\r\n```\r\n\r\nIs causing this error\r\n\r\n```\r\nterminate called after throwing an instance of 'std::logic_error'\r\n  what():  translateEnodeExprNode: Unknown Term\r\n```\r\n\r\nI think the culprit is the recently added `mk_num`, because if you replace that with a variable the error does not occur.  I added this example as `tests/ifelse.jl in dReal.jl`"}}