Skip to content

⛽: Use minimum to combine incoming gas values in per-context gas#1598

Merged
michael-schwarz merged 2 commits intomasterfrom
gas_fundec_needs_to_be_min
Oct 14, 2024
Merged

⛽: Use minimum to combine incoming gas values in per-context gas#1598
michael-schwarz merged 2 commits intomasterfrom
gas_fundec_needs_to_be_min

Conversation

@michael-schwarz
Copy link
Copy Markdown
Member

As observed by @jerhard for our extended version of the context paper, the gas (if tracked per fundec) needs to be combined with the minimum operation as otherwise it can be replenished unboundedly in the case of several mutually recursive functions.

This PR adds an example that was previously problematic, and fixes the issue.

@michael-schwarz michael-schwarz added bug performance Analysis time, memory usage labels Oct 14, 2024
@michael-schwarz michael-schwarz changed the title Use minimum to combined incoming gas values in per-context gas ⛽: Use minimum to combine incoming gas values in per-context gas Oct 14, 2024
Copy link
Copy Markdown
Member

@jerhard jerhard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@michael-schwarz michael-schwarz merged commit fa96209 into master Oct 14, 2024
@michael-schwarz michael-schwarz deleted the gas_fundec_needs_to_be_min branch October 14, 2024 19:27
@sim642 sim642 added this to the v2.5.0 milestone Oct 15, 2024
sim642 added a commit to sim642/opam-repository that referenced this pull request Nov 28, 2024
CHANGES:

Functionally equivalent to Goblint in SV-COMP 2025.

* Add 32bit vs 64bit architecture support (goblint/analyzer#54, goblint/analyzer#1574).
* Add per-function context gas analysis (goblint/analyzer#1569, goblint/analyzer#1570, goblint/analyzer#1598).
* Adapt automatic static loop unrolling (goblint/analyzer#1516, goblint/analyzer#1582, goblint/analyzer#1583, goblint/analyzer#1584, goblint/analyzer#1590, goblint/analyzer#1595, goblint/analyzer#1599).
* Adapt automatic configuration tuning (goblint/analyzer#1450, goblint/analyzer#1612, goblint/analyzer#1181, goblint/analyzer#1604).
* Simplify non-relational integer invariants in witnesses (goblint/analyzer#1517).
* Fix excessive hash collisions (goblint/analyzer#1594, goblint/analyzer#1602).
* Clean up various code (goblint/analyzer#1095, goblint/analyzer#1523, goblint/analyzer#1554, goblint/analyzer#1575, goblint/analyzer#1588, goblint/analyzer#1597, goblint/analyzer#1614).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug performance Analysis time, memory usage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants