Stav dette: Logic-Based Program Synthesis and Transformation