I am looking for a fast algorithm to find all integer solutions for the following system of linear equations ($c_1,\ldots,c_n \in \mathbb{Z}$ and $r\in \mathbb{N}$ ):
$x_1+x_2=c_1$
$x_3+x_4=c_2$
...
$x_{2n-1}+x_{2n}=c_n$
$|x_1|+|x_2|+\ldots+|x_{2n}|=r$
$x_1,\ldots,x_{2n} \in \mathbb{Z}$
Also can we find the number of solutions before solving the system?