summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-11 00:46:32 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-11 00:46:32 +0000
commit49eb2dddac93654388d4a889414dc10db1fb8998 (patch)
tree4eaddea17b06d1cad1315ce55dd5cbe9a87c9658
parent46dd30c7d4da68b83ebfd5975153521ee237311f (diff)
cfg print goal nt rhs
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@504 ec762483-ff6d-05da-a07a-a48fb63a330f
-rwxr-xr-xdecoder/cfg.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/decoder/cfg.cc b/decoder/cfg.cc
index 6a5d8342..281e9a00 100755
--- a/decoder/cfg.cc
+++ b/decoder/cfg.cc
@@ -77,7 +77,8 @@ void CFG::Print(std::ostream &o,CFGFormat const& f) const {
assert(!uninit);
if (!f.goal_nt_name.empty()) {
o << '['<<f.goal_nt_name <<']';
- f.print_rhs(o,*this,&goal_nt,&goal_nt+1);
+ WordID rhs=-goal_nt;
+ f.print_rhs(o,*this,&rhs,&rhs+1);
if (pushed_inside!=1)
f.print_features(o,pushed_inside);
o<<'\n';