Phase transitions in integer linear problems