[build][bugs] fix functions rewriting + [fr] conversion: regex rules -> graph rules