The present disclosure provides compounds and pharmaceutically acceptable salts that are tyrosine kinase inhibitors, in particular BLK, BMX, EGFR, HER2, HER4, ITK, JAK3, TEC, Btk, and TXK and are therefore useful for the treatment of diseases treatable by inhibition of tyrosine kinases such as cancer and inflammatory diseases such as arthritis, and the like. A selector for the given link selects which of the overlapping secondary paths is allocated to the given link at any time. The relevant-log-image extracting unit is configured to extract a log image similar to the target log image as a relevant log image based on a specific feature of the target log image extracted by the target-log-image extracting unit.