Skip to content
Snippets Groups Projects
Commit d8512968 authored by Fabian Vu's avatar Fabian Vu
Browse files

Add information on formal models

parent 213edbd2
Branches
No related tags found
No related merge requests found
Pipeline #146413 passed
Showing
with 57 additions and 1 deletion
/*
From ProB Examples, originally used to test ProB,
rewritten for B2Program
*/
MACHINE StringLaws MACHINE StringLaws
DEFINITIONS DEFINITIONS
laws == ((s1=s2 <=> s2=s1) & laws == ((s1=s2 <=> s2=s1) &
......
/*
From ProB Examples, originally used to test ProB,
rewritten for B2Program
*/
MACHINE SubstitutionLaws MACHINE SubstitutionLaws
SETS SETS
ID={aa,bb} ID={aa,bb}
......
/*
Original model:
J.-R. Abrial. Modeling in Event-B: System and Software Engineering. Cambridge University Press, 2010.
Rewritten for TLC
*/
MACHINE Train_1_beebook_TLC MACHINE Train_1_beebook_TLC
SETS /* enumerated */ SETS /* enumerated */
BLOCKS={A,B,C,D,E,F,G,H,I,J,K,L,M,N}; BLOCKS={A,B,C,D,E,F,G,H,I,J,K,L,M,N};
......
/*
Original model:
J.-R. Abrial. Modeling in Event-B: System and Software Engineering. Cambridge University Press, 2010.
*/
MACHINE Train_1_beebook_deterministic MACHINE Train_1_beebook_deterministic
SETS /* enumerated */ SETS /* enumerated */
BLOCKS={A,B,C,D,E,F,G,H,I,J,K,L,M,N}; BLOCKS={A,B,C,D,E,F,G,H,I,J,K,L,M,N};
......
/*
Original model:
J.-R. Abrial. Modeling in Event-B: System and Software Engineering. Cambridge University Press, 2010.
Model applies Partial Order Reduction manually
*/
MACHINE Train_1_beebook_deterministic_MC MACHINE Train_1_beebook_deterministic_MC
SETS /* enumerated */ SETS /* enumerated */
BLOCKS={A,B,C,D,E,F,G,H,I,J,K,L,M,N}; BLOCKS={A,B,C,D,E,F,G,H,I,J,K,L,M,N};
......
/*
Original model:
J.-R. Abrial. Modeling in Event-B: System and Software Engineering. Cambridge University Press, 2010.
Model applies Partial Order Reduction manually
*/
MACHINE Train_1_beebook_deterministic_MC_POR MACHINE Train_1_beebook_deterministic_MC_POR
SETS /* enumerated */ SETS /* enumerated */
BLOCKS={A,B,C,D,E,F,G,H,I,J,K,L,M,N}; BLOCKS={A,B,C,D,E,F,G,H,I,J,K,L,M,N};
......
/*
Original model:
J.-R. Abrial. Modeling in Event-B: System and Software Engineering. Cambridge University Press, 2010.
Model applies Partial Order Reduction manually.
Rewritten version for B2Program
*/
MACHINE Train_1_beebook_deterministic_MC_POR_v2 MACHINE Train_1_beebook_deterministic_MC_POR_v2
SETS /* enumerated */ SETS /* enumerated */
BLOCKS={A,B,C,D,E,F,G,H,I,J,K,L,M,N}; BLOCKS={A,B,C,D,E,F,G,H,I,J,K,L,M,N};
......
MACHINE Train_1_beebook_deterministic_MC_POR_v3 // this version is very close to Train_1_beebook_tlc_POR. For instance, top-level ANY substitutions are not re-written to PRE as done in Train_1_beebook_deterministic_MC_POR_v2. DEFINITIONS are still inlined. /*
Original model:
J.-R. Abrial. Modeling in Event-B: System and Software Engineering. Cambridge University Press, 2010.
Model applies Partial Order Reduction manually.
Rewritten version for B2Program.
This version is very close to Train_1_beebook_tlc_POR. For instance, top-level ANY substitutions are not re-written to PRE as done in Train_1_beebook_deterministic_MC_POR_v2. DEFINITIONS are still inlined.
*/
MACHINE Train_1_beebook_deterministic_MC_POR_v3
SETS /* enumerated */ SETS /* enumerated */
BLOCKS={A,B,C,D,E,F,G,H,I,J,K,L,M,N}; BLOCKS={A,B,C,D,E,F,G,H,I,J,K,L,M,N};
ROUTES={R1,R2,R3,R4,R5,R6,R7,R8,R9,R10} ROUTES={R1,R2,R3,R4,R5,R6,R7,R8,R9,R10}
......
/*
Original Model:
V. Rivera, N. Catano, T. Wahls, and C. Rueda. Code generation for Event-B. STTT, 19(1):31–52, 2017.
*/
MACHINE sort_m2_data1000 MACHINE sort_m2_data1000
// a version where some assertions and invariants are simplified/removed // a version where some assertions and invariants are simplified/removed
// so that TLC4B can infer a function type for f and g // so that TLC4B can infer a function type for f and g
......
/*
Original Model:
V. Rivera, N. Catano, T. Wahls, and C. Rueda. Code generation for Event-B. STTT, 19(1):31–52, 2017.
*/
MACHINE sort_m2_data1000_MC MACHINE sort_m2_data1000_MC
// a version where some assertions and invariants are simplified/removed // a version where some assertions and invariants are simplified/removed
// so that TLC4B can infer a function type for f and g // so that TLC4B can infer a function type for f and g
......
/*
From ProB Examples
*/
MACHINE tictac MACHINE tictac
ABSTRACT_VARIABLES square, turn ABSTRACT_VARIABLES square, turn
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment