Computer simulation of reactive liquids in chemical equilibrium