ternary_engine
