summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-07-27 15:08:15 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-07-27 15:08:15 +0200
commitcfb0fe371838a5a7112ad73c0a33073cc209d288 (patch)
tree8aacf4fbdaa65e6251fd11c8cfd94e56d1e3decc /ast-to-instr/src
parent28c1633308fa51ebffe9d0e901821d10c13092bc (diff)
Fixes multiple issues with depths.
Diffstat (limited to 'ast-to-instr/src')
-rw-r--r--ast-to-instr/src/Depths.java17
1 files changed, 10 insertions, 7 deletions
diff --git a/ast-to-instr/src/Depths.java b/ast-to-instr/src/Depths.java
index ade01c8..400ff58 100644
--- a/ast-to-instr/src/Depths.java
+++ b/ast-to-instr/src/Depths.java
@@ -60,13 +60,16 @@ public class Depths
--current_depth
)
{
- Predicates.add_entry
- (
- DEPTHS_OUTPUT,
- "is_lower_than",
- get_id_from_depth(new Integer(current_depth - 1)),
- get_id_from_depth(new Integer(current_depth))
- );
+ for (int i = 0; i < current_depth; ++i)
+ {
+ Predicates.add_entry
+ (
+ DEPTHS_OUTPUT,
+ "is_lower_than",
+ get_id_from_depth(new Integer(i)),
+ get_id_from_depth(new Integer(current_depth))
+ );
+ }
}
}
}