The AS COC prohibit "impossible" and "illogical" ticketing and define the practice in Rule 7(D). AS may cancel either or both tickets.
Tickets on successive dates are not necessarily "impossible" and there are many people who may routinely use such tickets.
However, tickets where the passenger could not possibly fly both are definitionally "impossible" and the algorithm to spot those is simple.