-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'yaml-witness-invariant-set-widen-token' into svcomp25-dev
- Loading branch information
Showing
12 changed files
with
131 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
(** Widening token for {!WideningTokenLifter}. *) | ||
|
||
module Uuid = | ||
struct | ||
include Basetype.RawStrings | ||
let name () = "uuid" | ||
end | ||
|
||
module Index = | ||
struct | ||
include Printable.Option (IntDomain.Integers (IntOps.NIntOps)) (struct let name = "None" end) | ||
let name () = "index" | ||
end | ||
|
||
(* Change to variant type if need other tokens than witness UUIDs. *) | ||
include Printable.Prod (Uuid) (Index) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
tests/regression/56-witness/64-apron-unassume-set-tokens.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// SKIP PARAM: --set ana.activated[+] apron --set ana.activated[+] unassume --set witness.yaml.unassume 64-apron-unassume-set-tokens.yml --set ana.apron.domain polyhedra --enable ana.widen.tokens | ||
#include <assert.h> | ||
// Uses polyhedra instead of octagon such that widening tokens are actually needed by test instead of narrowing. | ||
// Copied & extended from 56-witness/12-apron-unassume-branch. | ||
int main() { | ||
int i = 0; | ||
while (i < 100) { | ||
i++; | ||
} | ||
assert(i == 100); | ||
|
||
int j = 0; | ||
while (j < 100) { | ||
j++; | ||
} | ||
assert(j == 100); | ||
return 0; | ||
} |
59 changes: 59 additions & 0 deletions
59
tests/regression/56-witness/64-apron-unassume-set-tokens.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
- entry_type: invariant_set | ||
metadata: | ||
format_version: "0.1" | ||
uuid: 0a72f7b3-7826-4f68-bc7b-25425e95946e | ||
creation_time: 2022-07-26T09:11:03Z | ||
producer: | ||
name: Goblint | ||
version: heads/yaml-witness-unassume-0-g48503c690-dirty | ||
command_line: '''./goblint'' ''--enable'' ''dbg.debug'' ''--enable'' ''dbg.regression'' | ||
''--html'' ''--set'' ''ana.activated[+]'' ''apron'' ''--enable'' ''witness.yaml.enabled'' | ||
''64-apron-unassume-set-tokens.c''' | ||
task: | ||
input_files: | ||
- 64-apron-unassume-set-tokens.c | ||
input_file_hashes: | ||
64-apron-unassume-set-tokens.c: 71e40ed99b5217343d0831e293e7207e5bd30ce53f6ab73f0c1ef6ced1afcc60 | ||
data_model: LP64 | ||
language: C | ||
content: | ||
- invariant: | ||
type: location_invariant | ||
location: | ||
file_name: 64-apron-unassume-set-tokens.c | ||
file_hash: 71e40ed99b5217343d0831e293e7207e5bd30ce53f6ab73f0c1ef6ced1afcc60 | ||
line: 8 | ||
column: 3 | ||
function: main | ||
value: 99LL - (long long )i >= 0LL | ||
format: c_expression | ||
- invariant: | ||
type: location_invariant | ||
location: | ||
file_name: 64-apron-unassume-set-tokens.c | ||
file_hash: 71e40ed99b5217343d0831e293e7207e5bd30ce53f6ab73f0c1ef6ced1afcc60 | ||
line: 8 | ||
column: 3 | ||
function: main | ||
value: (long long )i >= 0LL | ||
format: c_expression | ||
- invariant: | ||
type: location_invariant | ||
location: | ||
file_name: 64-apron-unassume-set-tokens.c | ||
file_hash: 71e40ed99b5217343d0831e293e7207e5bd30ce53f6ab73f0c1ef6ced1afcc60 | ||
line: 14 | ||
column: 3 | ||
function: main | ||
value: 99LL - (long long )j >= 0LL | ||
format: c_expression | ||
- invariant: | ||
type: location_invariant | ||
location: | ||
file_name: 64-apron-unassume-set-tokens.c | ||
file_hash: 71e40ed99b5217343d0831e293e7207e5bd30ce53f6ab73f0c1ef6ced1afcc60 | ||
line: 14 | ||
column: 3 | ||
function: main | ||
value: (long long )j >= 0LL | ||
format: c_expression |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters