1. Consider a simple imperative language called Bare Bones. It uses only the following four
statements.

Statement Meaning
clear name;
Set the value of name to zero
incr name;
Increase the value of name by 1
decr name;
Decrease the value of name by 1
while name not 0 do; … end;
While the value of name is not zero do …

where name stands for a variable name. As an example, the following routine copies the value
of X to Y with the side effect of destroying the value of X.

clear Y;
while X not 0 do;
incr Y;
decr X;

Please write a Bare Bones routine that copies the value of X to Y without destroying X’s value.
You are allowed to use an auxiliary variable Z (20%)