From 923e623c7465e03c792c7093cd21f3eea86f5f28 Mon Sep 17 00:00:00 2001 From: Jacob Alexander Date: Fri, 21 Nov 2014 11:53:11 -0800 Subject: [PATCH] Fixing kll permutation expansion bug. --- examples/capabilitiesExample.kll | 1 + examples/simple1.kll | 1 + kll.py | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/capabilitiesExample.kll b/examples/capabilitiesExample.kll index b390266..66b17b6 100644 --- a/examples/capabilitiesExample.kll +++ b/examples/capabilitiesExample.kll @@ -6,4 +6,5 @@ KLL = 0.3; myCapability2 => myFunc2(); myCapability3 => myFunc2( myArg1 : 2 ); myCapability => myFunc( myArg1 : 1, myArg2 : 4 ); +usbKeyOut => Output_usbCodeSend_capability( usbCode : 1 ); diff --git a/examples/simple1.kll b/examples/simple1.kll index 5b91360..1ce1b4d 100644 --- a/examples/simple1.kll +++ b/examples/simple1.kll @@ -5,6 +5,7 @@ KLL = 0.3; myCapability2 => myFunc2(); myCapability3 => myFunc3( myArg1 : 2 ); myCapability => myFunc( myArg1 : 1, myArg2 : 4 ); +usbKeyOut => Output_usbCodeSend_capability( usbCode : 1 ); S0x3 : myCapability2(); S0x4 : myCapability2() + myCapability3(0x5); diff --git a/kll.py b/kll.py index 76dc3b5..57fd37a 100755 --- a/kll.py +++ b/kll.py @@ -387,7 +387,6 @@ def optionExpansion( sequences ): curLeafList[ leaf ] = 0 if leaf + 1 < len( curLeafList ): curLeafList[ leaf + 1 ] += 1 - break return expandedSequences