#include <monitor>
#include <stdio.h>

#include "bench.h"


monitor M {};
void __attribute__((noinline)) call( M & mutex m1, M & mutex m2, M & mutex m3, M & mutex m4 ) {}

int main(int argc, char* argv[]) {
	M m1, m2, m3, m4;
	BENCH(
		for (size_t i = 0; i < n; i++) {
			call(m1, m2, m3, m4);
		},
		result
	)

	printf("%llu\n", result);
}