def METHOD_NAME(target, suffix):
    m.config.set_debug_mode(True)
    m.set_codegen_debug_info(True)
    class main(m.Circuit):
        name = "main"
        io = m.IO(I=m.In(m.Bits[2]), O=m.Out(m.Bit))
        and2_0 = And2()
        and2_1 = And2()
        m.wire(io.I[0], and2_0.I0)
        m.wire(io.I[1], and2_0.I1)
        m.wire(and2_0.O, and2_1.I0)
        m.wire(io.I[1], and2_1.I1)
        and2_2 = And2()
        m.wire(and2_1.O, and2_2.I0)
        m.wire(io.I[0], and2_2.I1)
        m.wire(and2_2.O, io.O)
    m.compile("build/test_interleaved_instance_wiring", main, output=target)
    m.set_codegen_debug_info(False)
    m.config.set_debug_mode(False)
    assert check_files_equal(__file__, f"build/test_interleaved_instance_wiring.{suffix}",
                             f"gold/test_interleaved_instance_wiring.{suffix}")