search for: __virtual_entry

Displaying 1 result from an estimated 1 matches for "__virtual_entry".

2019 Apr 01
2
Instruction Execution With Hard Limitation at Runtime
I am trying to give a quota of how many instructions can be run to a program. So create a simple function as below: define void @add_gas(i64 %gasCost) { __virtual_entry: %0 = load i64, i64* @__WAVM__XX__gGasUsed ### I am sure it exists, same as the __WAVM__XX__gGasLimit %addtmp = add i64 %0, %gasCost %1 = load i64, i64* @__WAVM__XX__gGasLimit %cmptmp = icmp sgt i64 %addtmp, %1 br i1 %cmptmp, label %then, label %ifcont then:...