Skip to content

Commit 3af3bef

Browse files
Merge pull request #1791 from goblint/base_path_sens
Allow for path-sensitive base analysis
2 parents 92007d5 + 7d28227 commit 3af3bef

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

src/analyses/base.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ struct
3838
type t = Dom.t
3939
module D = Dom
4040
include Analyses.ValueContexts(D)
41+
module P = IdentityP(Dom)
4142

4243
(* Two global invariants:
4344
1. Priv.V -> Priv.G -- used for Priv

tests/regression/01-cpa/80-path.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//PARAM: --enable ana.int.interval --set ana.path_sens[+] base
2+
#include <stdio.h>
3+
#include <stdlib.h>
4+
#include <goblint.h>
5+
6+
int main () {
7+
int a;
8+
int b;
9+
10+
int top;
11+
12+
if(top) {
13+
a = 5; b = 5;
14+
} else {
15+
a = 10; b = 10;
16+
}
17+
18+
__goblint_check(a == b);
19+
return 0;
20+
}

0 commit comments

Comments
 (0)