import cpp import semmle.code.cpp.valuenumbering.GlobalValueNumbering from GVN g where strictcount(g.getAnExpr()) > 1 select g, strictconcat(Location loc | loc = g.getAnExpr().getLocation() | loc.getStartLine() + ":c" + loc.getStartColumn() + "-c" + loc.getEndColumn() , " ")