add commented-out/incomplete implementation of simplifyWeakExpr