Automatic verification of heap-dependent folds in Viper