In the indicator diagram, net amount of work done will be
Loop 1 is anticlockwise, therefore W1 is negative, loop 2 is clockwise, therefore W2 is positive
Also loop 2 is bigger
Therefore W2>W1
Hence, W=−W1+W2
Therefore work done is positive