This repository was archived by the owner on May 22, 2023. It is now read-only.
File tree 12 files changed +32
-19
lines changed
12 files changed +32
-19
lines changed Original file line number Diff line number Diff line change 58
58
end Initialize ;
59
59
60
60
procedure Modify (Session : in out Client_Session;
61
- Ctx : in out Context)
61
+ Ctx : in out Context) with
62
+ SPARK_Mode => Off
63
+ -- Object_Size cannot be annotated to Buffer
64
+ -- This causes a check in the Address overlay
62
65
is
63
66
Length : constant Integer := Gneiss_Internal.Syscall.Stat_Size (Session.Fd);
64
67
Last : constant Buffer_Index := Get_Last (Length);
Original file line number Diff line number Diff line change 10
10
function Get_Last is new Gneiss_Internal.Util.Get_Last (Buffer_Index);
11
11
12
12
procedure Modify (Session : in out Server_Session;
13
- Ctx : in out Context)
13
+ Ctx : in out Context) with
14
+ SPARK_Mode => Off
15
+ -- Object_Size cannot be annotated to Buffer
16
+ -- This causes a check in the Address overlay
14
17
is
15
18
Length : constant Integer := Gneiss_Internal.Syscall.Stat_Size (Session.Fd);
16
19
Last : constant Buffer_Index := Get_Last (Length);
Original file line number Diff line number Diff line change 40
40
end Initialize ;
41
41
42
42
procedure Update (Session : in out Client_Session;
43
- Ctx : in out Context)
43
+ Ctx : in out Context) with
44
+ SPARK_Mode => Off
45
+ -- Object_Size cannot be annotated to Buffer
46
+ -- This causes a check in the Address overlay
44
47
is
45
48
Length : constant Integer := Gneiss_Internal.Syscall.Stat_Size (Session.Fd);
46
49
Last : constant Buffer_Index := Get_Last (Length);
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ with Gneiss_Internal;
6
6
package Component with
7
7
SPARK_Mode,
8
8
Abstract_State => (Component_State, Platform_State),
9
- Initializes => (Platform_State)
9
+ Initializes => (Platform_State, Main.Platform )
10
10
is
11
11
12
12
procedure Construct (Capability : Gneiss.Capability) with
Original file line number Diff line number Diff line change @@ -10,14 +10,18 @@ make -C ada-runtime
10
10
11
11
set -e
12
12
13
- ./cement prove test/message_client.gpr . lib test -u component
14
- ./cement prove test/message_server.gpr . lib test -u component
15
- ./cement prove test/hello_world.gpr . lib test -u component
16
- ./cement prove test/log_proxy.gpr . lib test -u component
17
- ./cement prove test/rom.gpr . lib test -u component
18
- ./cement prove test/memory_client.gpr . lib test -u component
19
- ./cement prove test/memory_server.gpr . lib test -u component
20
- ./cement prove test/timer.gpr . lib test -u component
13
+ if [ " $( gcc -dumpversion) " = " 9.3.1" ]
14
+ then
15
+ # Only prove with GNAT CE 2020/GNAT Pro 21
16
+ ./cement prove test/message_client.gpr . lib test -u component
17
+ ./cement prove test/message_server.gpr . lib test -u component
18
+ ./cement prove test/hello_world.gpr . lib test -u component
19
+ ./cement prove test/log_proxy.gpr . lib test -u component
20
+ ./cement prove test/rom.gpr . lib test -u component
21
+ ./cement prove test/memory_client.gpr . lib test -u component
22
+ ./cement prove test/memory_server.gpr . lib test -u component
23
+ ./cement prove test/timer.gpr . lib test -u component
24
+ fi
21
25
22
26
./cement build test/message_client/message_client.xml . lib test
23
27
./cement build test/hello_world/hello_world.xml . lib test
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ with Gneiss_Internal;
6
6
package Component with
7
7
SPARK_Mode,
8
8
Abstract_State => (Component_State, Platform_State),
9
- Initializes => (Platform_State)
9
+ Initializes => (Platform_State, Main.Platform )
10
10
is
11
11
12
12
procedure Construct (Cap : Gneiss.Capability) with
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ with Gneiss.Component;
6
6
package Component with
7
7
SPARK_Mode,
8
8
Abstract_State => Platform_State,
9
- Initializes => (Platform_State)
9
+ Initializes => (Platform_State, Main.Platform )
10
10
is
11
11
12
12
procedure Construct (Cap : Gneiss.Capability) with
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ with Gneiss_Internal;
6
6
package Component with
7
7
SPARK_Mode,
8
8
Abstract_State => (Component_State, Platform_State),
9
- Initializes => (Platform_State)
9
+ Initializes => (Platform_State, Main.Platform )
10
10
is
11
11
12
12
procedure Construct (Cap : Gneiss.Capability) with
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ with Gneiss_Internal;
6
6
package Component with
7
7
SPARK_Mode,
8
8
Abstract_State => (Component_State, Platform_State),
9
- Initializes => (Platform_State)
9
+ Initializes => (Platform_State, Main.Platform )
10
10
is
11
11
12
12
procedure Construct (Cap : Gneiss.Capability) with
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ with Gneiss_Internal;
6
6
package Component with
7
7
SPARK_Mode,
8
8
Abstract_State => (Component_State, Platform_State),
9
- Initializes => (Platform_State)
9
+ Initializes => (Platform_State, Main.Platform )
10
10
is
11
11
12
12
procedure Construct (Cap : Gneiss.Capability) with
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ with Gneiss_Internal;
6
6
package Component with
7
7
SPARK_Mode,
8
8
Abstract_State => (Component_State, Platform_State),
9
- Initializes => (Platform_State)
9
+ Initializes => (Platform_State, Main.Platform )
10
10
is
11
11
12
12
procedure Construct (Capability : Gneiss.Capability) with
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ with Gneiss_Internal;
6
6
package Component with
7
7
SPARK_Mode,
8
8
Abstract_State => (Component_State, Platform_State),
9
- Initializes => (Platform_State)
9
+ Initializes => (Platform_State, Main.Platform )
10
10
is
11
11
12
12
procedure Construct (Cap : Gneiss.Capability) with
You can’t perform that action at this time.
0 commit comments