summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-01-29 19:54:26 +0100
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-01-29 19:54:26 +0100
commit1373211465c34015ee900e097aa87fbffb401187 (patch)
tree8ffa1f9296097c91627c05874fcf4559cac45de7 /src/core/index.h
parentdf3657b2a99ef20da99ac3c6c02f43cc23e70fca (diff)
Trying out ACSL, continuing implementation.
Diffstat (limited to 'src/core/index.h')
-rw-r--r--src/core/index.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/core/index.h b/src/core/index.h
index 1417662..eb3c471 100644
--- a/src/core/index.h
+++ b/src/core/index.h
@@ -6,14 +6,19 @@
/*
* Returns a random ZoO_index.
*/
+/*@
+ ensures (\result <= ZoO_INDEX_MAX);
+ assigns \result;
+@*/
ZoO_index ZoO_index_random (void);
/*
* Returns a random ZoO_index, included in [0, limit]
*/
/*@
- @ ensures (\result <= limit);
- @*/
+ ensures (\result <= limit);
+ assigns \result;
+@*/
ZoO_index ZoO_index_random_up_to (const ZoO_index limit);
#endif