<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/58596>58596</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Tidy: if with identical then and else branches
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          MaJerle
      </td>
    </tr>
</table>

<pre>
    This is the code:

```
    if (!(b->flags & MY_FLAG)) {
        if ((mstime - b->time_change) >= GET_MIN(b)) {
            b->flags |= MY_FLAG;
            lw->evt_fn(lw, b, OPR);
            b->ka.last_time = mstime;
        }
    } else {
        if ((mstime - b->ka.last_time) >= PERIOD(b)) {
            b->ka.last_time += PERIOD(b);
            ++b->ka.cnt;
            lw->evt_fn(lw, b, OPS);
        }
    }
```

For which clang-tidy `15.0.0-rc3` throws an error: `warning: if with identical then and else branches [bugprone-branch-clone]`
Command is called as: `clang-tidy -checks='*' file.c`

How can this be same if and else branch?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVU01z2yAQ_TXowkiDwPo66BDHdppO03TSXHryIIQkGowygKPJv-8ix42buDOJhlmzsG_37WPdjO1zfT8oh2H5QWIxthKxC0RWiBxtTl7W7GL4VIcRLRFNwTYxYutO897BWY5vfm033y6uEK1gYVQsX1GnyHLnvNpJHOMZH_ZbMXDTyxnG1oit8NX6fntz_T0U-V--8J0yKC4D8EiCnYnWUwiXT37bGcisJ0QvcRPM7Y-7UOYcaC7xwBPNnd_OxEOZQw_vAKhYvR6Ag6V28sNSnFY50eLH-u76dvUhKf7lSZfv4edaDIF0eUwgjP-0ej_PpX4rxtmZOtjNaPE0KDFgoWESYq_aZwwxaZaQhMRWMHBgSu04OcwNltaOFoY1xEzcGmX64IGuk_IDVq00Xgmuw2AbALSHh2gsN2KQMCzZstn3j3Y0Mj4cxkKDg7LVX2aX424XkPD3gExatpi7l5InJGPIJx7gAhQuEL0AizulZSLetPhlnCCPAUaQsJHYcXgiIPyGHGKbSNZpnucFYekijdqatRWreOSV17K-h6KfaTXaW10P3j8G7ohuYPWA2zeJGHfgaP10_IlBj99SeHCVc3vpYJOVWZVHQy3KoqOEFF2VV1lLaJuKIi3aBalE1hVpGWneQN0ahEWUGjnhOQXsQdJI1ZRQmhKapYxkizQpoaWiKFvG6KLLeYcWRO640kngkYy2j2w9U4JXcnCplfPu9ZI7p3oj5VwO8vO9H0Zb3_Cv0moZzaXrmfof-FpbZA">