<commit_before>#include "test.h"

static void proc2()
{
	unsigned event;

	event = mut_wait(mut1);                      assert_success(event);
	event = mut_give(mut1);                      assert_success(event);
	                                             assert(!"test program cannot be caught here");
}

static void proc1()
{
	unsigned event;
	                                             assert_dead(tsk2);
	        tsk_startFrom(tsk2, proc2);
	event = tsk_kill(tsk2);                      assert_success(event);
	        tsk_stop();
}

static void test()
{
	unsigned event;

	event = mut_wait(mut1);                      assert_success(event);
	                                             assert_dead(tsk1);
	        tsk_startFrom(tsk1, proc1);
	event = mut_give(mut1);                      assert_success(event);
	event = tsk_join(tsk1);                      assert_success(event);
}

void test_fast_mutex_1()
{
	int i;
	TEST_Notify();
	for (i = 0; i < PASS; i++)
		test();
}<commit_msg>Update test_fast_mutex_1.c<commit_after>#include "test.h"

static void proc2()
{
	unsigned event;

	event = mut_wait(mut1);                      assert_success(event);
	event = mut_give(mut1);                      assert_success(event);
	                                             assert(!"test program cannot be caught here");
}

static void proc1()
{
	unsigned event;
	                                             assert_dead(tsk2);
	        tsk_startFrom(tsk2, proc2);
	event = tsk_kill(tsk2);                      assert_success(event);
	        tsk_stop();
}

static void test()
{
	unsigned event;

	event = mut_wait(mut1);                      assert_success(event);
	                                             assert_dead(tsk1);
	        tsk_startFrom(tsk1, proc1);
	event = mut_give(mut1);                      assert_success(event);
	event = tsk_join(tsk1);                      assert_success(event);
}

void test_fast_mutex_1()
{
	TEST_Notify();
	TEST_Call();
}
{'fraction_non_alphanumeric': 0.1035007610350076, 'fraction_numerical': 0.016235413495687467, 'mean_word_length': 1.581151832460733, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3387210', 'n_tokens_mistral': 596, 'n_tokens_neox': 560, 'n_words': 115}