Skip to content

Encode slice make as a method call#607

Merged
jcp19 merged 7 commits intomasterfrom
joao-test-better-slice-make
Feb 2, 2023
Merged

Encode slice make as a method call#607
jcp19 merged 7 commits intomasterfrom
joao-test-better-slice-make

Conversation

@jcp19
Copy link
Contributor

@jcp19 jcp19 commented Jan 29, 2023

Instead of encoding calls to make for slices as a sequence of exhales and inhales that encode a function call, this PR generates a method instead and encodes the calls to make at the Gobra level as method calls to the generated method.

This is the first of a few PRs I have in mind to make the Viper code generated by Viper more readable

@jcp19 jcp19 marked this pull request as ready for review February 2, 2023 14:41
@jcp19 jcp19 requested review from ArquintL and Felalolf February 2, 2023 14:41
Co-authored-by: Linard Arquint <ArquintL@users.noreply.github.com>
@jcp19 jcp19 merged commit 247d182 into master Feb 2, 2023
@jcp19 jcp19 deleted the joao-test-better-slice-make branch February 2, 2023 16:26
jcp19 added a commit that referenced this pull request Feb 6, 2023
jcp19 added a commit that referenced this pull request Feb 6, 2023
jcp19 added a commit that referenced this pull request Mar 1, 2023
* backup

* Undo #607

* backup

* remove test pushed by mistake

* add fix and tests

* Fix identation test

* remove println
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants