Skip to content

Commit

Permalink
rename G => GAAS in one of the lemmas. (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhang90 authored and ehildenb committed Aug 13, 2019
1 parent 615db59 commit b31f51b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions tests/specs/ds-token-erc20/abstract-semantics-segmented-gas.k
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ module ABSTRACT-SEMANTICS-SEGMENTED-GAS
// ########################

// accumulate the gas cost and never run out of gas
rule <k> G ~> #deductGas => . ... </k>
<gas> #gas(INITGAS, NONMEM, MEM) => #gas(INITGAS, NONMEM +Int G, MEM) </gas>
rule <k> GAAS:Int ~> #deductGas => . ... </k>
<gas> #gas(INITGAS, NONMEM, MEM) => #gas(INITGAS, NONMEM +Int GAAS, MEM) </gas>
<callGas> _ => #gas(INITGAS, NONMEM, MEM) </callGas>
requires #notKLabel(G, "#symCmem")
requires #notKLabel(GAAS, "#symCmem")
[trusted, matching(#gas)]

rule <k> #symCmem(MEM') ~> #deductGas => . ... </k>
Expand Down
6 changes: 3 additions & 3 deletions tests/specs/hkg-erc20/abstract-semantics-segmented-gas.k
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ module ABSTRACT-SEMANTICS-SEGMENTED-GAS
// ########################

// accumulate the gas cost and never run out of gas
rule <k> G ~> #deductGas => . ... </k>
<gas> #gas(INITGAS, NONMEM, MEM) => #gas(INITGAS, NONMEM +Int G, MEM) </gas>
rule <k> GAAS:Int ~> #deductGas => . ... </k>
<gas> #gas(INITGAS, NONMEM, MEM) => #gas(INITGAS, NONMEM +Int GAAS, MEM) </gas>
<callGas> _ => #gas(INITGAS, NONMEM, MEM) </callGas>
requires #notKLabel(G, "#symCmem")
requires #notKLabel(GAAS, "#symCmem")
[trusted, matching(#gas)]

rule <k> #symCmem(MEM') ~> #deductGas => . ... </k>
Expand Down
6 changes: 3 additions & 3 deletions tests/specs/hobby-erc20/abstract-semantics-segmented-gas.k
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ module ABSTRACT-SEMANTICS-SEGMENTED-GAS
// ########################

// accumulate the gas cost and never run out of gas
rule <k> G ~> #deductGas => . ... </k>
<gas> #gas(INITGAS, NONMEM, MEM) => #gas(INITGAS, NONMEM +Int G, MEM) </gas>
rule <k> GAAS:Int ~> #deductGas => . ... </k>
<gas> #gas(INITGAS, NONMEM, MEM) => #gas(INITGAS, NONMEM +Int GAAS, MEM) </gas>
<callGas> _ => #gas(INITGAS, NONMEM, MEM) </callGas>
requires #notKLabel(G, "#symCmem")
requires #notKLabel(GAAS, "#symCmem")
[trusted, matching(#gas)]

rule <k> #symCmem(MEM') ~> #deductGas => . ... </k>
Expand Down

0 comments on commit b31f51b

Please sign in to comment.