from qiskit import QuantumCircuit

# DoubleMeas inside a branch: the second measure of q0 is reachable from the
# first along the if-true path with no operation on q0 between.
qc = QuantumCircuit(1, 1)
qc.reset(0)
qc.measure(0, 0)
if some_flag:
    qc.measure(0, 0)    # BUG: double measure of q0 in branch
