From 599dcf5919f859806a174af74836fbdfe4c40110 Mon Sep 17 00:00:00 2001 From: cfreksen Date: Sun, 29 Oct 2017 19:00:10 +0100 Subject: [PATCH] Add the remaining comparisons for icmp. --- stepper.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/stepper.py b/stepper.py index acced2e..d012528 100644 --- a/stepper.py +++ b/stepper.py @@ -155,6 +155,14 @@ def eval_icmp(cnd, left, right): return left == right elif cnd == 'ne': return left != right + elif cnd == 'slt': + return left < right + elif cnd == 'sle': + return left <= right + elif cnd == 'sgt': + return left > right + elif cnd == 'sge': + return left >= right else: err('eval_icmp: Unknown cnd: {}' .format(cnd))