from oblif.decorator import oblif
from oblif.types import OblivVal
from oblif.iterators import orange

#for i in orange(10,10):
#    print(i)

@oblif
def test(x):
    ctr = 0
    for i in range(min(x,5)):
        ctr += 1
    return ctr

#print("test(2) is", test(OblivVal(6)))

#test = lambda x: x*x if x==6 else 0
#test=oblif(test)

print("test(2) is", test(OblivVal(4)))

from oblif.decorator import oblif
from oblif.types import OblivVal
from oblif.iterators import orange

#for i in orange(10,10):
#    print(i)

@oblif
def test(x):
    ctr = 0
    for i in range(min(x,5)):
        ctr += 1
    return ctr

#print("test(2) is", test(OblivVal(6)))

#test = lambda x: x*x if x==6 else 0
#test=oblif(test)

print("test(2) is", test(OblivVal(4)))

#for i in orange(10,10): #    print(i) #print("test(2) is", test(OblivVal(6))) #test = lambda x: x*x if x==6 else 0 #test=oblif(test)