Skip to content

Instantly share code, notes, and snippets.

View rom1v's full-sized avatar

Romain Vimont rom1v

View GitHub Profile
@rom1v
rom1v / a.rs
Last active April 27, 2018 05:34
Infinite loop that terminates (in Rust)
fn f(b: bool) -> bool {
loop {
if b {
return true
}
}
// false
}
fn main() {
@rom1v
rom1v / a.c
Last active April 26, 2018 20:39
Infinite loop that terminates (in C)
#include <stdio.h>
int f(int b)
{
while (1) {
if (b)
return 1;
}
return 0;
}
@rom1v
rom1v / log.txt
Created July 19, 2013 12:15
testlog/rhizomeprotocol/8.FileTransferUnreliableBigMDP.FAIL/log.txt
Name: FileTransferUnreliableBigMDP (rhizomeprotocol)
Result: FAIL
Started: 2013-07-19 14:05:14.848
Finished: 2013-07-19 14:06:25.312
++++++++++ log.stdout ++++++++++
14:05:14.863 # SETUP
14:05:14.874 # call setup_FileTransferUnreliableBigMDP()
14:05:14.907 # set instance = Z, number = 26
14:05:14.949 # assert no servald process(es) running
14:05:14.960 # set instance = A, number = 1