Result

WA

Duration

1204ms

Code [DL]

module c;integer b,c,i;initial begin
begin:a
while(1)begin
c=$fgetc(1<<31);$write("%c",c);if(c==8'h54)disable a;end
end
b = 0;while(b==0)begin
for(i=0;i<50;i++)begin
c=$fgetc(1<<31);if(c==8'h4b)b=1;$write("%c",c+b);end
$write("+");end
end
endmodule

stdin

                                           T      
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
      K                                           

stdout

                                           T      
                                           +       
                                          +        
                                         +         
                                        +          
                                       +           
                                      +            
                                     +             
                                    +              
                                   +               
                                  +                
                                 +                 
                                +                  
                               +                   
                              +                    
                             +                     
                            +                      
                           +                       
                          +                        
                         +                         
                        +                          
                       +                           
                      +                            
                     +                             
                    +                              
                   +                               
                  +                                
                 +                                 
                +                                  
               +                                   
              +                                    
             +                                     
            +                                      
           +                                       
          +                                        
         +                                         
      L!+

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffe8a4b61c0 /* 9 vars */) = 0
11    execve("/usr/local/bin/iverilog", ["/usr/local/bin/iverilog", "-o", "/tmp/code", "/volume/CODE"], 0x55bd855fdd50 /* 9 vars */) = 0
12    execve("/bin/sh", ["sh", "-c", "/usr/local/lib/ivl/ivlpp  -L -F\""...], 0x7fffc7afa8a0 /* 9 vars */) = 0
13    execve("/usr/local/lib/ivl/ivlpp", ["/usr/local/lib/ivl/ivlpp", "-L", "-F/tmp/ivrlg23999c4e2", "-f/tmp/ivrlg3999c4e2", "-p/tmp/ivrli3999c4e2"], 0x55d79d4422e8 /* 9 vars */) = 0
14    execve("/usr/local/lib/ivl/ivl", ["/usr/local/lib/ivl/ivl", "-C/tmp/ivrlh3999c4e2", "-C/usr/local/lib/ivl/vvp.conf", "--", "-"], 0x55d79d4422d0 /* 9 vars */) = 0
13    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
14    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
12    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
11    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=11, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
15    execve("/bin/cat", ["cat", "-"], 0x55bd855fdd08 /* 9 vars */ <unfinished ...>
16    execve("/tmp/code", ["/tmp/code"], 0x55bd855fdcf0 /* 9 vars */) = 0
15    <... execve resumed> )            = 0
15    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
16    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
17    execve("/bin/rm", ["rm", "/tmp/code"], 0x55bd855fdc98 /* 9 vars */) = 0
17    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
10    +++ exited with 0 +++