Permalink
Browse files

automata/bin/trie_generator: Output length rather than membership. RN…

…S-794
  • Loading branch information...
1 parent afe9d55 commit f44adb9fde31a17191ba7fff90bedd1a6315fbc1 Christopher Alfeld committed Jan 23, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 automata/bin/trie_generator.cpp
View
4 automata/bin/trie_generator.cpp
@@ -102,7 +102,7 @@ void add_word(Automata& a, const string& s)
IronAutomata::buffer_t content_buffer;
IronAutomata::BufferAssembler assembler(content_buffer);
- assembler.append_object(uint32_t(1));
+ assembler.append_object(uint32_t(s.length()));
output->content().assign(
content_buffer.begin(), content_buffer.end()
@@ -154,7 +154,7 @@ int main(int argc, char** argv)
breadth_first(a, optimize_edges);
deduplicate_outputs(a);
- a.metadata()["Output-Type"] = "string";
+ a.metadata()["Output-Type"] = "length";
write_automata(a, cout, chunk_size);
}

0 comments on commit f44adb9

Please sign in to comment.