diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-11 00:46:32 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-11 00:46:32 +0000 |
commit | 1109095a09368ae29d6aa367334db6512b677f54 (patch) | |
tree | e3bcd068d9d54e70efad5184a644c4bd3698041c /decoder/cfg.cc | |
parent | 667675465486e1f9729931c0b38b5a1124a1c000 (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-x | decoder/cfg.cc | 3 |
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'; |