generate_increase & generate_decrease added

Signed-off-by: John Liu <johnnnpl@gmail.com>