Skip to content

Commit

Permalink
Rename RFLX_Utils to RFLX_Arithmetic
Browse files Browse the repository at this point in the history
Ref. #294
  • Loading branch information
treiher committed Jun 19, 2020
1 parent cb6cf76 commit fbea48f
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,17 @@ Creating generated/rflx-tlv.ads
Creating generated/rflx-tlv-generic_message.ads
Creating generated/rflx-tlv-generic_message.adb
Creating generated/rflx-tlv-message.ads
Creating generated/rflx-rflx_arithmetic.ads
Creating generated/rflx-rflx_builtin_types-conversions.ads
Creating generated/rflx-rflx_builtin_types.ads
Creating generated/rflx-rflx_generic_types.ads
Creating generated/rflx-rflx_message_sequence.ads
Creating generated/rflx-rflx_scalar_sequence.ads
Creating generated/rflx-rflx_utils.ads
Creating generated/rflx-rflx_types.ads
Creating generated/rflx-rflx_arithmetic.adb
Creating generated/rflx-rflx_generic_types.adb
Creating generated/rflx-rflx_message_sequence.adb
Creating generated/rflx-rflx_scalar_sequence.adb
Creating generated/rflx-rflx_utils.adb
Creating generated/rflx.ads
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pragma Style_Checks ("N3aAbcdefhiIklnOprStux");

package body RFLX.RFLX_Utils with
package body RFLX.RFLX_Arithmetic with
SPARK_Mode
is

Expand Down Expand Up @@ -60,4 +60,4 @@ is
return Result;
end Mod_Pow2;

end RFLX.RFLX_Utils;
end RFLX.RFLX_Arithmetic;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pragma Style_Checks ("N3aAbcdefhiIklnOprStux");

package RFLX.RFLX_Utils with
package RFLX.RFLX_Arithmetic with
SPARK_Mode
is

Expand Down Expand Up @@ -38,4 +38,4 @@ is
Post =>
Mod_Pow2'Result < 2**Exp;

end RFLX.RFLX_Utils;
end RFLX.RFLX_Arithmetic;
2 changes: 1 addition & 1 deletion generated/rflx-rflx_generic_types.adb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pragma Style_Checks ("N3aAbcdefhiIklnOprStux");

with RFLX.RFLX_Utils; use RFLX.RFLX_Utils;
with RFLX.RFLX_Arithmetic; use RFLX.RFLX_Arithmetic;

package body RFLX.RFLX_Generic_Types with
SPARK_Mode
Expand Down
6 changes: 3 additions & 3 deletions rflx/generator/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,32 @@

REFINEMENT_PACKAGE = ID("Contains")

ARITHMETIC_PACKAGE = ID("RFLX_Arithmetic")
BUILTIN_TYPES_CONVERSIONS_PACKAGE = ID("RFLX_Builtin_Types.Conversions")
BUILTIN_TYPES_PACKAGE = ID("RFLX_Builtin_Types")
GENERIC_TYPES_PACKAGE = ID("RFLX_Generic_Types")
MESSAGE_SEQUENCE_PACKAGE = ID("RFLX_Message_Sequence")
SCALAR_SEQUENCE_PACKAGE = ID("RFLX_Scalar_Sequence")
TYPES_PACKAGE = ID("RFLX_Types")
UTILS_PACKAGE = ID("RFLX_Utils")

LIBRARY_FILES = [
file_name(str(p)) + ".ads"
for p in [
ARITHMETIC_PACKAGE,
BUILTIN_TYPES_CONVERSIONS_PACKAGE,
BUILTIN_TYPES_PACKAGE,
GENERIC_TYPES_PACKAGE,
MESSAGE_SEQUENCE_PACKAGE,
SCALAR_SEQUENCE_PACKAGE,
TYPES_PACKAGE,
UTILS_PACKAGE,
]
] + [
file_name(str(p)) + ".adb"
for p in [
ARITHMETIC_PACKAGE,
GENERIC_TYPES_PACKAGE,
MESSAGE_SEQUENCE_PACKAGE,
SCALAR_SEQUENCE_PACKAGE,
UTILS_PACKAGE,
]
]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pragma Style_Checks ("N3aAbcdefhiIklnOprStux");

package body {prefix}RFLX_Utils with
package body {prefix}RFLX_Arithmetic with
SPARK_Mode
is

Expand Down Expand Up @@ -60,4 +60,4 @@ is
return Result;
end Mod_Pow2;

end {prefix}RFLX_Utils;
end {prefix}RFLX_Arithmetic;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pragma Style_Checks ("N3aAbcdefhiIklnOprStux");

package {prefix}RFLX_Utils with
package {prefix}RFLX_Arithmetic with
SPARK_Mode
is

Expand Down Expand Up @@ -38,4 +38,4 @@ is
Post =>
Mod_Pow2'Result < 2**Exp;

end {prefix}RFLX_Utils;
end {prefix}RFLX_Arithmetic;
2 changes: 1 addition & 1 deletion rflx/templates/rflx_generic_types.adb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pragma Style_Checks ("N3aAbcdefhiIklnOprStux");

with {prefix}RFLX_Utils; use {prefix}RFLX_Utils;
with {prefix}RFLX_Arithmetic; use {prefix}RFLX_Arithmetic;

package body {prefix}RFLX_Generic_Types with
SPARK_Mode
Expand Down
4 changes: 2 additions & 2 deletions test.gpr
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ project Test is
for Proof_Switches ("rflx-ethernet-frame.ads") use ("--steps=25000");
for Proof_Switches ("rflx-ipv4-option.ads") use ("--steps=2000");
for Proof_Switches ("rflx-ipv4-packet.ads") use ("--steps=14000");
for Proof_Switches ("rflx-rflx_arithmetic.adb") use ("--steps=30000");
for Proof_Switches ("rflx-rflx_arithmetic.ads") use ("--steps=30000");
for Proof_Switches ("rflx-rflx_types.ads") use ("--steps=80000", "--prover=altergo,cvc4,z3");
for Proof_Switches ("rflx-rflx_utils.adb") use ("--steps=30000");
for Proof_Switches ("rflx-rflx_utils.ads") use ("--steps=30000");
for Proof_Switches ("rflx-udp-datagram.ads") use ("--steps=4000");

case AUnit is
Expand Down

0 comments on commit fbea48f

Please sign in to comment.