raz / conform / err / GenInstDiff.raz

14 lines · 398 B · raw · history · last change b38de572

1module GenInstDiff;
2import Table1 := Table(I64, I64, h1, same), Table2 := Table(I64, I64, h2, same);
3
4proc h1(k: I64): U64; begin return U64(k); end;
5proc h2(k: I64): U64; begin return U64(k) + 1; end;
6proc same(a, b: I64): BOOL; begin return a = b; end;
7
8var a: Table1.Table; b: Table2.Table;
9
10proc main*;
11begin
12 a := b; (* the procedures differ, so the instances do *)
13end;
14end GenInstDiff.