Skip to content

Commit 83fd948

Browse files
committed
Add function id to value-set.
Value sets already know their own location id; this adds the function id too so that context-sensitive variants of VSA can find that without needing to track extra context themselves.
1 parent c308d18 commit 83fd948

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/pointer-analysis/value_set.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class value_sett
3232
const namespacet &);
3333

3434
unsigned location_number;
35+
irep_idt function;
3536
static object_numberingt object_numbering;
3637

3738
typedef irep_idt idt;

src/pointer-analysis/value_set_domain.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class value_set_domaint:public domain_baset
3939
{
4040
value_set.clear();
4141
value_set.location_number=l->location_number;
42+
value_set.function=l->function;
4243
}
4344

4445
virtual void transform(

0 commit comments

Comments
 (0)