Skip to content

Commit 4522577

Browse files
author
Jérôme FERET
committed
Be careful, rules with creation should be tested to deal with implicit sites
1 parent bc7c2f1 commit 4522577

7 files changed

Lines changed: 68 additions & 1 deletion

File tree

core/KaSa_rep/reachability_analysis/composite_domain.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,9 +545,10 @@ module Make (Domain : Analyzer_domain_sig.Domain) = struct
545545
bonds = Ckappa_sig.AgentSite_map_and_set.Map.empty;
546546
}
547547
in
548+
let error, dynamic = scan_rule_creation static dynamic error in
548549
let error, dynamic =
549550
match patch with
550-
| None -> scan_rule_creation static dynamic error
551+
| None -> error, dynamic
551552
| Some _ -> scan_rule_patch ?start static dynamic error
552553
in
553554
let error, dynamic, () = apply_event_list static dynamic error event_list in
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cat command.txt|"${KAPPABIN}"KaSaIncremental essai.ka
2+
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
update file essai_diff.ka as essai.ka
2+
q
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
A(x{u}),. -> A(x{u}),B(x{p}) @1
2+
%init: 10 A()
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
A(x{u}),. -> A(x{u}),B(x{p}) @1
2+
%init: 10 A()
3+
B(x{p},y{u})-> B(x{u},y{p}) @1
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
Parsing essai.ka...
2+
done
3+
Compiling...
4+
Reachability analysis...
5+
------------------------------------------------------------
6+
every rule may be applied
7+
------------------------------------------------------------
8+
every agent may occur in the model
9+
10+
------------------------------------------------------------
11+
* Non relational properties:
12+
------------------------------------------------------------
13+
A(x) => A(x{u})
14+
B(x) => B(x{p})
15+
16+
------------------------------------------------------------
17+
* Relational properties:
18+
------------------------------------------------------------
19+
------------------------------------------------------------
20+
* Properties in connected agents
21+
------------------------------------------------------------
22+
------------------------------------------------------------
23+
* Properties of pairs of bonds
24+
------------------------------------------------------------
25+
------------------------------------------------------------
26+
* Properties of counters
27+
------------------------------------------------------------
28+
execution finished without any exception
29+
Parsing essai_diff.ka...
30+
done
31+
------------------------------------------------------------
32+
every rule may be applied
33+
------------------------------------------------------------
34+
every agent may occur in the model
35+
36+
------------------------------------------------------------
37+
* Non relational properties:
38+
------------------------------------------------------------
39+
A(x) => A(x{u})
40+
B(x) => [ B(x{p}) v B(x{u}) ]
41+
B(y) => [ B(y{u}) v B(y{p}) ]
42+
43+
------------------------------------------------------------
44+
* Relational properties:
45+
------------------------------------------------------------
46+
B(x{u}) <=> B(y{p})
47+
------------------------------------------------------------
48+
* Properties in connected agents
49+
------------------------------------------------------------
50+
------------------------------------------------------------
51+
* Properties of pairs of bonds
52+
------------------------------------------------------------
53+
------------------------------------------------------------
54+
* Properties of counters
55+
------------------------------------------------------------
56+
execution finished without any exception
57+
>

tests/integration/incremental/creation_with_implicit_signature/output/error.log.ref

Whitespace-only changes.

0 commit comments

Comments
 (0)