Archived
1
0

Fixing kll permutation expansion bug.

This commit is contained in:
Jacob Alexander 2014-11-21 11:53:11 -08:00
parent 6454917b11
commit 923e623c74
3 changed files with 2 additions and 1 deletions

View File

@ -6,4 +6,5 @@ KLL = 0.3;
myCapability2 => myFunc2(); myCapability2 => myFunc2();
myCapability3 => myFunc2( myArg1 : 2 ); myCapability3 => myFunc2( myArg1 : 2 );
myCapability => myFunc( myArg1 : 1, myArg2 : 4 ); myCapability => myFunc( myArg1 : 1, myArg2 : 4 );
usbKeyOut => Output_usbCodeSend_capability( usbCode : 1 );

View File

@ -5,6 +5,7 @@ KLL = 0.3;
myCapability2 => myFunc2(); myCapability2 => myFunc2();
myCapability3 => myFunc3( myArg1 : 2 ); myCapability3 => myFunc3( myArg1 : 2 );
myCapability => myFunc( myArg1 : 1, myArg2 : 4 ); myCapability => myFunc( myArg1 : 1, myArg2 : 4 );
usbKeyOut => Output_usbCodeSend_capability( usbCode : 1 );
S0x3 : myCapability2(); S0x3 : myCapability2();
S0x4 : myCapability2() + myCapability3(0x5); S0x4 : myCapability2() + myCapability3(0x5);

1
kll.py
View File

@ -387,7 +387,6 @@ def optionExpansion( sequences ):
curLeafList[ leaf ] = 0 curLeafList[ leaf ] = 0
if leaf + 1 < len( curLeafList ): if leaf + 1 < len( curLeafList ):
curLeafList[ leaf + 1 ] += 1 curLeafList[ leaf + 1 ] += 1
break
return expandedSequences return expandedSequences