Skip to content

Commit

Permalink
Need to increase max running time, because some of the mips programs …
Browse files Browse the repository at this point in the history
…needs more than 10 seconds
  • Loading branch information
jefersonla committed Nov 16, 2016
1 parent 9f42bda commit 2b78d94
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion simulate.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

MAX_RUNNING_TIME=10
MAX_RUNNING_TIME=60

# Show help usage
if [ "$#" -eq "0" ] || [ "$#" -gt "2" ]
Expand Down
17 changes: 17 additions & 0 deletions test.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
function z(y)
local x = 1
print(x)
while 1 do
print(x)
if x >= 10 then
return x
end
if x > y then
y = 2 * x
end
x = x + y
end
return 0
end

print(z(1))
1 change: 1 addition & 0 deletions tests/input/input-24
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
function collatz(x)
local steps = 0
while 1 do
print(steps)
if x == 1 then
return steps
end
Expand Down

0 comments on commit 2b78d94

Please sign in to comment.