Skip to content

Commit

Permalink
update expected
Browse files Browse the repository at this point in the history
  • Loading branch information
ailrst committed Nov 1, 2023
1 parent 6ed9c42 commit 69353b8
Show file tree
Hide file tree
Showing 349 changed files with 12,595 additions and 12,595 deletions.
54 changes: 27 additions & 27 deletions src/test/correct/arrays_simple/clang/arrays_simple.expected
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
var {:extern }Gamma_R0: bool;
var {:extern }Gamma_R31: bool;
var {:extern }Gamma_R8: bool;
var {:extern }Gamma_mem: [bv64]bool;
var {:extern }Gamma_stack: [bv64]bool;
var {:extern }R0: bv64;
var {:extern }R31: bv64;
var {:extern }R8: bv64;
var {:extern }mem: [bv64]bv8;
var {:extern }stack: [bv64]bv8;
const {:extern }$_IO_stdin_used_addr: bv64;
axiom {:extern }($_IO_stdin_used_addr == 1872bv64);
function {:extern } {:bvbuiltin "bvadd"}bvadd64(bv64, bv64) returns (bv64);
function {:extern }gamma_load32(gammaMap: [bv64]bool, index: bv64) returns (bool) {
var {:extern } Gamma_R0: bool;
var {:extern } Gamma_R31: bool;
var {:extern } Gamma_R8: bool;
var {:extern } Gamma_mem: [bv64]bool;
var {:extern } Gamma_stack: [bv64]bool;
var {:extern } R0: bv64;
var {:extern } R31: bv64;
var {:extern } R8: bv64;
var {:extern } mem: [bv64]bv8;
var {:extern } stack: [bv64]bv8;
const {:extern } $_IO_stdin_used_addr: bv64;
axiom ($_IO_stdin_used_addr == 1872bv64);
function {:extern } {:bvbuiltin "bvadd"} bvadd64(bv64, bv64) returns (bv64);
function {:extern } gamma_load32(gammaMap: [bv64]bool, index: bv64) returns (bool) {
(gammaMap[bvadd64(index, 3bv64)] && (gammaMap[bvadd64(index, 2bv64)] && (gammaMap[bvadd64(index, 1bv64)] && gammaMap[index])))
}

function {:extern }gamma_store32(gammaMap: [bv64]bool, index: bv64, value: bool) returns ([bv64]bool) {
function {:extern } gamma_store32(gammaMap: [bv64]bool, index: bv64, value: bool) returns ([bv64]bool) {
gammaMap[index := value][bvadd64(index, 1bv64) := value][bvadd64(index, 2bv64) := value][bvadd64(index, 3bv64) := value]
}

function {:extern }memory_load32_le(memory: [bv64]bv8, index: bv64) returns (bv32) {
function {:extern } memory_load32_le(memory: [bv64]bv8, index: bv64) returns (bv32) {
(memory[bvadd64(index, 3bv64)] ++ (memory[bvadd64(index, 2bv64)] ++ (memory[bvadd64(index, 1bv64)] ++ memory[index])))
}

function {:extern }memory_load8_le(memory: [bv64]bv8, index: bv64) returns (bv8) {
function {:extern } memory_load8_le(memory: [bv64]bv8, index: bv64) returns (bv8) {
memory[index]
}

function {:extern }memory_store32_le(memory: [bv64]bv8, index: bv64, value: bv32) returns ([bv64]bv8) {
function {:extern } memory_store32_le(memory: [bv64]bv8, index: bv64, value: bv32) returns ([bv64]bv8) {
memory[index := value[8:0]][bvadd64(index, 1bv64) := value[16:8]][bvadd64(index, 2bv64) := value[24:16]][bvadd64(index, 3bv64) := value[32:24]]
}

function {:extern } {:bvbuiltin "zero_extend 32"}zero_extend32_32(bv32) returns (bv64);
procedure {:extern }rely();
function {:extern } {:bvbuiltin "zero_extend 32"} zero_extend32_32(bv32) returns (bv64);
procedure {:extern } rely();
modifies Gamma_mem, mem;
ensures (mem == old(mem));
ensures (Gamma_mem == old(Gamma_mem));
Expand Down Expand Up @@ -73,7 +73,7 @@ procedure {:extern }rely();
free ensures (memory_load8_le(mem, 69678bv64) == 0bv8);
free ensures (memory_load8_le(mem, 69679bv64) == 0bv8);

procedure {:extern }rely_transitive()
procedure {:extern } rely_transitive()
modifies Gamma_mem, mem;
ensures (mem == old(mem));
ensures (Gamma_mem == old(Gamma_mem));
Expand All @@ -82,9 +82,9 @@ procedure {:extern }rely_transitive()
call rely();
}

procedure {:extern }rely_reflexive();
procedure {:extern } rely_reflexive();

procedure {:extern }guarantee_reflexive();
procedure {:extern } guarantee_reflexive();
modifies Gamma_mem, mem;

procedure main()
Expand Down Expand Up @@ -181,17 +181,17 @@ procedure main()
free ensures (memory_load8_le(mem, 69679bv64) == 0bv8);
{
lmain:
assume {:captureState "addr:0x714"}true;
assume {:captureState "addr:lmain"} true;
R31, Gamma_R31 := bvadd64(R31, 18446744073709551584bv64), Gamma_R31;
R8, Gamma_R8 := 3bv64, true;
stack, Gamma_stack := memory_store32_le(stack, bvadd64(R31, 20bv64), R8[32:0]), gamma_store32(Gamma_stack, bvadd64(R31, 20bv64), Gamma_R8);
assume {:captureState "addr:0x71c"}true;
assume {:captureState "%0000089b"} true;
R8, Gamma_R8 := 7bv64, true;
stack, Gamma_stack := memory_store32_le(stack, bvadd64(R31, 28bv64), R8[32:0]), gamma_store32(Gamma_stack, bvadd64(R31, 28bv64), Gamma_R8);
assume {:captureState "addr:0x724"}true;
assume {:captureState "%000008a8"} true;
R8, Gamma_R8 := zero_extend32_32(memory_load32_le(stack, bvadd64(R31, 20bv64))), gamma_load32(Gamma_stack, bvadd64(R31, 20bv64));
stack, Gamma_stack := memory_store32_le(stack, bvadd64(R31, 8bv64), R8[32:0]), gamma_store32(Gamma_stack, bvadd64(R31, 8bv64), Gamma_R8);
assume {:captureState "addr:0x72c"}true;
assume {:captureState "%000008b7"} true;
R0, Gamma_R0 := 0bv64, true;
R31, Gamma_R31 := bvadd64(R31, 32bv64), Gamma_R31;
return;
Expand Down
24 changes: 12 additions & 12 deletions src/test/correct/arrays_simple/clang_O2/arrays_simple.expected
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
var {:extern }Gamma_R0: bool;
var {:extern }Gamma_mem: [bv64]bool;
var {:extern }R0: bv64;
var {:extern }mem: [bv64]bv8;
const {:extern }$_IO_stdin_used_addr: bv64;
axiom {:extern }($_IO_stdin_used_addr == 1840bv64);
function {:extern }memory_load8_le(memory: [bv64]bv8, index: bv64) returns (bv8) {
var {:extern } Gamma_R0: bool;
var {:extern } Gamma_mem: [bv64]bool;
var {:extern } R0: bv64;
var {:extern } mem: [bv64]bv8;
const {:extern } $_IO_stdin_used_addr: bv64;
axiom ($_IO_stdin_used_addr == 1840bv64);
function {:extern } memory_load8_le(memory: [bv64]bv8, index: bv64) returns (bv8) {
memory[index]
}

procedure {:extern }rely();
procedure {:extern } rely();
modifies Gamma_mem, mem;
ensures (mem == old(mem));
ensures (Gamma_mem == old(Gamma_mem));
Expand Down Expand Up @@ -49,7 +49,7 @@ procedure {:extern }rely();
free ensures (memory_load8_le(mem, 69678bv64) == 0bv8);
free ensures (memory_load8_le(mem, 69679bv64) == 0bv8);

procedure {:extern }rely_transitive()
procedure {:extern } rely_transitive()
modifies Gamma_mem, mem;
ensures (mem == old(mem));
ensures (Gamma_mem == old(Gamma_mem));
Expand All @@ -58,9 +58,9 @@ procedure {:extern }rely_transitive()
call rely();
}

procedure {:extern }rely_reflexive();
procedure {:extern } rely_reflexive();

procedure {:extern }guarantee_reflexive();
procedure {:extern } guarantee_reflexive();
modifies Gamma_mem, mem;

procedure main()
Expand Down Expand Up @@ -155,7 +155,7 @@ procedure main()
free ensures (memory_load8_le(mem, 69679bv64) == 0bv8);
{
lmain:
assume {:captureState "addr:0x714"}true;
assume {:captureState "addr:lmain"} true;
R0, Gamma_R0 := 0bv64, true;
return;
}
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
var {:extern }Gamma_R0: bool;
var {:extern }Gamma_R31: bool;
var {:extern }Gamma_R8: bool;
var {:extern }Gamma_mem: [bv64]bool;
var {:extern }Gamma_stack: [bv64]bool;
var {:extern }R0: bv64;
var {:extern }R31: bv64;
var {:extern }R8: bv64;
var {:extern }mem: [bv64]bv8;
var {:extern }stack: [bv64]bv8;
const {:extern }$_IO_stdin_used_addr: bv64;
axiom {:extern }($_IO_stdin_used_addr == 1872bv64);
function {:extern } {:bvbuiltin "bvadd"}bvadd64(bv64, bv64) returns (bv64);
function {:extern }gamma_load32(gammaMap: [bv64]bool, index: bv64) returns (bool) {
var {:extern } Gamma_R0: bool;
var {:extern } Gamma_R31: bool;
var {:extern } Gamma_R8: bool;
var {:extern } Gamma_mem: [bv64]bool;
var {:extern } Gamma_stack: [bv64]bool;
var {:extern } R0: bv64;
var {:extern } R31: bv64;
var {:extern } R8: bv64;
var {:extern } mem: [bv64]bv8;
var {:extern } stack: [bv64]bv8;
const {:extern } $_IO_stdin_used_addr: bv64;
axiom ($_IO_stdin_used_addr == 1872bv64);
function {:extern } {:bvbuiltin "bvadd"} bvadd64(bv64, bv64) returns (bv64);
function {:extern } gamma_load32(gammaMap: [bv64]bool, index: bv64) returns (bool) {
(gammaMap[bvadd64(index, 3bv64)] && (gammaMap[bvadd64(index, 2bv64)] && (gammaMap[bvadd64(index, 1bv64)] && gammaMap[index])))
}

function {:extern }gamma_store32(gammaMap: [bv64]bool, index: bv64, value: bool) returns ([bv64]bool) {
function {:extern } gamma_store32(gammaMap: [bv64]bool, index: bv64, value: bool) returns ([bv64]bool) {
gammaMap[index := value][bvadd64(index, 1bv64) := value][bvadd64(index, 2bv64) := value][bvadd64(index, 3bv64) := value]
}

function {:extern }memory_load32_le(memory: [bv64]bv8, index: bv64) returns (bv32) {
function {:extern } memory_load32_le(memory: [bv64]bv8, index: bv64) returns (bv32) {
(memory[bvadd64(index, 3bv64)] ++ (memory[bvadd64(index, 2bv64)] ++ (memory[bvadd64(index, 1bv64)] ++ memory[index])))
}

function {:extern }memory_load8_le(memory: [bv64]bv8, index: bv64) returns (bv8) {
function {:extern } memory_load8_le(memory: [bv64]bv8, index: bv64) returns (bv8) {
memory[index]
}

function {:extern }memory_store32_le(memory: [bv64]bv8, index: bv64, value: bv32) returns ([bv64]bv8) {
function {:extern } memory_store32_le(memory: [bv64]bv8, index: bv64, value: bv32) returns ([bv64]bv8) {
memory[index := value[8:0]][bvadd64(index, 1bv64) := value[16:8]][bvadd64(index, 2bv64) := value[24:16]][bvadd64(index, 3bv64) := value[32:24]]
}

function {:extern } {:bvbuiltin "zero_extend 32"}zero_extend32_32(bv32) returns (bv64);
procedure {:extern }rely();
function {:extern } {:bvbuiltin "zero_extend 32"} zero_extend32_32(bv32) returns (bv64);
procedure {:extern } rely();
modifies Gamma_mem, mem;
ensures (mem == old(mem));
ensures (Gamma_mem == old(Gamma_mem));
Expand Down Expand Up @@ -73,7 +73,7 @@ procedure {:extern }rely();
free ensures (memory_load8_le(mem, 69678bv64) == 0bv8);
free ensures (memory_load8_le(mem, 69679bv64) == 0bv8);

procedure {:extern }rely_transitive()
procedure {:extern } rely_transitive()
modifies Gamma_mem, mem;
ensures (mem == old(mem));
ensures (Gamma_mem == old(Gamma_mem));
Expand All @@ -82,9 +82,9 @@ procedure {:extern }rely_transitive()
call rely();
}

procedure {:extern }rely_reflexive();
procedure {:extern } rely_reflexive();

procedure {:extern }guarantee_reflexive();
procedure {:extern } guarantee_reflexive();
modifies Gamma_mem, mem;

procedure main()
Expand Down Expand Up @@ -181,17 +181,17 @@ procedure main()
free ensures (memory_load8_le(mem, 69679bv64) == 0bv8);
{
lmain:
assume {:captureState "addr:0x714"}true;
assume {:captureState "addr:lmain"} true;
R31, Gamma_R31 := bvadd64(R31, 18446744073709551584bv64), Gamma_R31;
R8, Gamma_R8 := 3bv64, true;
stack, Gamma_stack := memory_store32_le(stack, bvadd64(R31, 20bv64), R8[32:0]), gamma_store32(Gamma_stack, bvadd64(R31, 20bv64), Gamma_R8);
assume {:captureState "addr:0x71c"}true;
assume {:captureState "%0000089b"} true;
R8, Gamma_R8 := 7bv64, true;
stack, Gamma_stack := memory_store32_le(stack, bvadd64(R31, 28bv64), R8[32:0]), gamma_store32(Gamma_stack, bvadd64(R31, 28bv64), Gamma_R8);
assume {:captureState "addr:0x724"}true;
assume {:captureState "%000008a8"} true;
R8, Gamma_R8 := zero_extend32_32(memory_load32_le(stack, bvadd64(R31, 20bv64))), gamma_load32(Gamma_stack, bvadd64(R31, 20bv64));
stack, Gamma_stack := memory_store32_le(stack, bvadd64(R31, 8bv64), R8[32:0]), gamma_store32(Gamma_stack, bvadd64(R31, 8bv64), Gamma_R8);
assume {:captureState "addr:0x72c"}true;
assume {:captureState "%000008b7"} true;
R0, Gamma_R0 := 0bv64, true;
R31, Gamma_R31 := bvadd64(R31, 32bv64), Gamma_R31;
return;
Expand Down
54 changes: 27 additions & 27 deletions src/test/correct/arrays_simple/clang_pic/arrays_simple.expected
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
var {:extern }Gamma_R0: bool;
var {:extern }Gamma_R31: bool;
var {:extern }Gamma_R8: bool;
var {:extern }Gamma_mem: [bv64]bool;
var {:extern }Gamma_stack: [bv64]bool;
var {:extern }R0: bv64;
var {:extern }R31: bv64;
var {:extern }R8: bv64;
var {:extern }mem: [bv64]bv8;
var {:extern }stack: [bv64]bv8;
const {:extern }$_IO_stdin_used_addr: bv64;
axiom {:extern }($_IO_stdin_used_addr == 1872bv64);
function {:extern } {:bvbuiltin "bvadd"}bvadd64(bv64, bv64) returns (bv64);
function {:extern }gamma_load32(gammaMap: [bv64]bool, index: bv64) returns (bool) {
var {:extern } Gamma_R0: bool;
var {:extern } Gamma_R31: bool;
var {:extern } Gamma_R8: bool;
var {:extern } Gamma_mem: [bv64]bool;
var {:extern } Gamma_stack: [bv64]bool;
var {:extern } R0: bv64;
var {:extern } R31: bv64;
var {:extern } R8: bv64;
var {:extern } mem: [bv64]bv8;
var {:extern } stack: [bv64]bv8;
const {:extern } $_IO_stdin_used_addr: bv64;
axiom ($_IO_stdin_used_addr == 1872bv64);
function {:extern } {:bvbuiltin "bvadd"} bvadd64(bv64, bv64) returns (bv64);
function {:extern } gamma_load32(gammaMap: [bv64]bool, index: bv64) returns (bool) {
(gammaMap[bvadd64(index, 3bv64)] && (gammaMap[bvadd64(index, 2bv64)] && (gammaMap[bvadd64(index, 1bv64)] && gammaMap[index])))
}

function {:extern }gamma_store32(gammaMap: [bv64]bool, index: bv64, value: bool) returns ([bv64]bool) {
function {:extern } gamma_store32(gammaMap: [bv64]bool, index: bv64, value: bool) returns ([bv64]bool) {
gammaMap[index := value][bvadd64(index, 1bv64) := value][bvadd64(index, 2bv64) := value][bvadd64(index, 3bv64) := value]
}

function {:extern }memory_load32_le(memory: [bv64]bv8, index: bv64) returns (bv32) {
function {:extern } memory_load32_le(memory: [bv64]bv8, index: bv64) returns (bv32) {
(memory[bvadd64(index, 3bv64)] ++ (memory[bvadd64(index, 2bv64)] ++ (memory[bvadd64(index, 1bv64)] ++ memory[index])))
}

function {:extern }memory_load8_le(memory: [bv64]bv8, index: bv64) returns (bv8) {
function {:extern } memory_load8_le(memory: [bv64]bv8, index: bv64) returns (bv8) {
memory[index]
}

function {:extern }memory_store32_le(memory: [bv64]bv8, index: bv64, value: bv32) returns ([bv64]bv8) {
function {:extern } memory_store32_le(memory: [bv64]bv8, index: bv64, value: bv32) returns ([bv64]bv8) {
memory[index := value[8:0]][bvadd64(index, 1bv64) := value[16:8]][bvadd64(index, 2bv64) := value[24:16]][bvadd64(index, 3bv64) := value[32:24]]
}

function {:extern } {:bvbuiltin "zero_extend 32"}zero_extend32_32(bv32) returns (bv64);
procedure {:extern }rely();
function {:extern } {:bvbuiltin "zero_extend 32"} zero_extend32_32(bv32) returns (bv64);
procedure {:extern } rely();
modifies Gamma_mem, mem;
ensures (mem == old(mem));
ensures (Gamma_mem == old(Gamma_mem));
Expand Down Expand Up @@ -73,7 +73,7 @@ procedure {:extern }rely();
free ensures (memory_load8_le(mem, 69678bv64) == 0bv8);
free ensures (memory_load8_le(mem, 69679bv64) == 0bv8);

procedure {:extern }rely_transitive()
procedure {:extern } rely_transitive()
modifies Gamma_mem, mem;
ensures (mem == old(mem));
ensures (Gamma_mem == old(Gamma_mem));
Expand All @@ -82,9 +82,9 @@ procedure {:extern }rely_transitive()
call rely();
}

procedure {:extern }rely_reflexive();
procedure {:extern } rely_reflexive();

procedure {:extern }guarantee_reflexive();
procedure {:extern } guarantee_reflexive();
modifies Gamma_mem, mem;

procedure main()
Expand Down Expand Up @@ -181,17 +181,17 @@ procedure main()
free ensures (memory_load8_le(mem, 69679bv64) == 0bv8);
{
lmain:
assume {:captureState "addr:0x714"}true;
assume {:captureState "addr:lmain"} true;
R31, Gamma_R31 := bvadd64(R31, 18446744073709551584bv64), Gamma_R31;
R8, Gamma_R8 := 3bv64, true;
stack, Gamma_stack := memory_store32_le(stack, bvadd64(R31, 20bv64), R8[32:0]), gamma_store32(Gamma_stack, bvadd64(R31, 20bv64), Gamma_R8);
assume {:captureState "addr:0x71c"}true;
assume {:captureState "%0000089b"} true;
R8, Gamma_R8 := 7bv64, true;
stack, Gamma_stack := memory_store32_le(stack, bvadd64(R31, 28bv64), R8[32:0]), gamma_store32(Gamma_stack, bvadd64(R31, 28bv64), Gamma_R8);
assume {:captureState "addr:0x724"}true;
assume {:captureState "%000008a8"} true;
R8, Gamma_R8 := zero_extend32_32(memory_load32_le(stack, bvadd64(R31, 20bv64))), gamma_load32(Gamma_stack, bvadd64(R31, 20bv64));
stack, Gamma_stack := memory_store32_le(stack, bvadd64(R31, 8bv64), R8[32:0]), gamma_store32(Gamma_stack, bvadd64(R31, 8bv64), Gamma_R8);
assume {:captureState "addr:0x72c"}true;
assume {:captureState "%000008b7"} true;
R0, Gamma_R0 := 0bv64, true;
R31, Gamma_R31 := bvadd64(R31, 32bv64), Gamma_R31;
return;
Expand Down
Loading

0 comments on commit 69353b8

Please sign in to comment.