tribuf: `-formal` option: convert all to logic and detect conflicts