t.ok(common.getFullQuallyfiedFuncDefinitionIdent(contract,funDef,['uint256','bool'])==='baz.getY(uint256,bool)','creates right signature')
t.ok(common.getFullQuallyfiedFuncDefinitionIdent(contract,fullyQualifiedFunctionDefinition,['uint256','bool'])==='baz.getY(uint256,bool)','creates right signature')
t.throws(()=>common.getFullQuallyfiedFuncDefinitionIdent(contract,{name:'MemberAccess'},['uint256','bool']),undefined,'throws on wrong nodes')
t.throws(()=>common.getFullQuallyfiedFuncDefinitionIdent({name:'FunctionCall'},funDef,['uint256','bool']),undefined,'throws on wrong nodes')
t.throws(()=>common.getFullQuallyfiedFuncDefinitionIdent({name:'FunctionCall'},fullyQualifiedFunctionDefinition,['uint256','bool']),undefined,'throws on wrong nodes')
t.ok(common.isLowLevelSendInst(sendAst)&&common.isLowLevelCall(sendAst),'send is llc should work')
t.ok(common.isLowLevelCallInst(callAst)&&common.isLowLevelCall(callAst),'call is llc should work')
t.notOk(common.isLowLevelCallInst(callcodeAst),'callcode is not call')
t.ok(common.isLowLevelCallcodeInst(callcodeAst)&&common.isLowLevelCall(callcodeAst),'callcode is llc should work')
t.notOk(common.isLowLevelCallcodeInst(callAst),'call is not callcode')
t.ok(common.isLowLevelDelegatecallInst(delegatecallAst)&&common.isLowLevelCall(delegatecallAst),'delegatecall is llc should work')
t.ok(common.isLowLevelSendInst(lowlevelCall.sendAst)&&common.isLowLevelCall(lowlevelCall.sendAst),'send is llc should work')
t.ok(common.isLowLevelCallInst(lowlevelCall.callAst)&&common.isLowLevelCall(lowlevelCall.callAst),'call is llc should work')
t.notOk(common.isLowLevelCallInst(lowlevelCall.callcodeAst),'callcode is not call')
t.ok(common.isLowLevelCallcodeInst(lowlevelCall.callcodeAst)&&common.isLowLevelCall(lowlevelCall.callcodeAst),'callcode is llc should work')
t.notOk(common.isLowLevelCallcodeInst(lowlevelCall.callAst),'call is not callcode')
t.ok(common.isLowLevelDelegatecallInst(lowlevelCall.delegatecallAst)&&common.isLowLevelCall(lowlevelCall.delegatecallAst),'delegatecall is llc should work')
})
test('staticAnalysisCommon: Call of parameter function',function(t){