| 
					
				 | 
			
			
				@@ -109,6 +109,9 @@ export class IVProgProcessor { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   findFunction (name) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if(name.match(/^\$.+$/)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if(name === IVProgProcessor.MAIN_INTERNAL_ID) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return this.findMainFunction(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       const fun = LanguageDefinedFunction.getFunction(name); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if(!fun) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         throw ProcessorErrorFactory.not_implemented(name); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -458,7 +461,8 @@ export class IVProgProcessor { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       const funcName = store.name === IVProgProcessor.MAIN_INTERNAL_ID ?  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         LanguageDefinedFunction.getMainFunctionName() : store.name; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      const func = this.findFunction(funcName); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      console.log(funcName,  store.name === IVProgProcessor.MAIN_INTERNAL_ID); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const func = this.findFunction(store.name); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       const funcType = func.returnType; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       const $value = this.evaluateExpression(store, cmd.expression); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        
			 |