Output: gates[1] = true if a_p > 0.5 else gates[1] = false gates[2] = true if a_n > 0.5 else gates[2] = false gates[3] = true if b_p > 0.5 else gates[3] = false gates[4] = true if b_n > 0.5 else gates[4] = false gates[5] = true if c_p > 0.5 else gates[5] = false gates[6] = true if c_n > 0.5 else gates[6] = false