summaryrefslogtreecommitdiff
path: root/decoder/cfg.cc
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
commit1109095a09368ae29d6aa367334db6512b677f54 (patch)
treee3bcd068d9d54e70efad5184a644c4bd3698041c /decoder/cfg.cc
parent667675465486e1f9729931c0b38b5a1124a1c000 (diff)
cfg print goal nt rhs
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@504 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/cfg.cc')
-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';