aboutsummaryrefslogblamecommitdiffstats
path: root/src/VMTestsFiller/loop-mul.sol
blob: a7780c67061eda44e038ba2deec1451e202a11e8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                                 
pragma solidity ^0.4.0;

contract MulPerformanceTester {

    function testMulMod(uint x, uint y, uint k, uint n) external returns (uint) {
        var r = x;
        for (uint i = 0; i < n; i += 1) {
            r = mulmod(r, y, k);
        }
        return r;
    }
}